Correct unit test for rhino -require support.

Former-commit-id: 83c076f881daccd18d7e11006e3fab75ecea27ea
This commit is contained in:
John-David Dalton
2013-03-08 09:00:20 -08:00
parent 7b35bb8c96
commit e7325f58c3

View File

@@ -2514,11 +2514,11 @@
var callCount = 0,
dateCount = 0;
var lodash = _.runInContext({
var lodash = _.runInContext(_.extend({}, window, {
'Date': function() {
return ++dateCount < 3 ? new Date : Object(Infinity);
}
});
}));
var throttled = lodash.throttle(function() {
callCount++;