From e7325f58c3c0d19fae928ee8e38bf7d0eec295f4 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 8 Mar 2013 09:00:20 -0800 Subject: [PATCH] Correct unit test for `rhino -require` support. Former-commit-id: 83c076f881daccd18d7e11006e3fab75ecea27ea --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 969fc43de..d54256ee5 100644 --- a/test/test.js +++ b/test/test.js @@ -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++;