mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Fix test fails in Rhino.
This commit is contained in:
@@ -7825,11 +7825,11 @@
|
|||||||
return ++dateCount < 3 ? +new Date : Infinity;
|
return ++dateCount < 3 ? +new Date : Infinity;
|
||||||
};
|
};
|
||||||
|
|
||||||
var lodash = _.runInContext({
|
var lodash = _.runInContext(_.assign({}, root, {
|
||||||
'Date': function() {
|
'Date': function() {
|
||||||
return { 'getTime': getTime, 'valueOf': getTime };
|
return { 'getTime': getTime, 'valueOf': getTime };
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
|
|
||||||
var throttled = lodash.throttle(function() {
|
var throttled = lodash.throttle(function() {
|
||||||
callCount++;
|
callCount++;
|
||||||
@@ -8073,11 +8073,11 @@
|
|||||||
return ++dateCount < 2 ? +new Date : +new Date(2012, 3, 23, 23, 27, 18);
|
return ++dateCount < 2 ? +new Date : +new Date(2012, 3, 23, 23, 27, 18);
|
||||||
};
|
};
|
||||||
|
|
||||||
var lodash = _.runInContext({
|
var lodash = _.runInContext(_.assign({}, root, {
|
||||||
'Date': function() {
|
'Date': function() {
|
||||||
return { 'getTime': getTime, 'valueOf': getTime };
|
return { 'getTime': getTime, 'valueOf': getTime };
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
|
|
||||||
var funced = lodash[methodName](function() {
|
var funced = lodash[methodName](function() {
|
||||||
callCount++;
|
callCount++;
|
||||||
|
|||||||
Reference in New Issue
Block a user