mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Correct unit test for rhino -require support.
Former-commit-id: 83c076f881daccd18d7e11006e3fab75ecea27ea
This commit is contained in:
@@ -2514,11 +2514,11 @@
|
|||||||
var callCount = 0,
|
var callCount = 0,
|
||||||
dateCount = 0;
|
dateCount = 0;
|
||||||
|
|
||||||
var lodash = _.runInContext({
|
var lodash = _.runInContext(_.extend({}, window, {
|
||||||
'Date': function() {
|
'Date': function() {
|
||||||
return ++dateCount < 3 ? new Date : Object(Infinity);
|
return ++dateCount < 3 ? new Date : Object(Infinity);
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
|
|
||||||
var throttled = lodash.throttle(function() {
|
var throttled = lodash.throttle(function() {
|
||||||
callCount++;
|
callCount++;
|
||||||
|
|||||||
Reference in New Issue
Block a user