From 4bae41ffd8fa5035d9683a8c7cb1bb847040228d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 30 Sep 2012 21:39:31 -0700 Subject: [PATCH] Use a better strict mode detect for tests.js so older versions of Node.js pass. Former-commit-id: fd9f6ea35c71a8183ce0dcf4a6ec6e6afe13c39e --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index bef79e460..82008153b 100644 --- a/test/test.js +++ b/test/test.js @@ -1706,7 +1706,7 @@ var thisArg, array = ['a'], callback = function() { thisArg = this; }, - useStrict = Function('"use strict";return this')() === undefined; + useStrict = (function() { return this; }).call(null) === null; var funcs = [ 'countBy',