Fix test fails in Rhino.

This commit is contained in:
John-David Dalton
2014-02-14 00:44:32 -08:00
parent ee4d9890e7
commit 7edf024c71

View File

@@ -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++;