Use a better strict mode detect for tests.js so older versions of Node.js pass.

Former-commit-id: fd9f6ea35c71a8183ce0dcf4a6ec6e6afe13c39e
This commit is contained in:
John-David Dalton
2012-09-30 21:39:31 -07:00
parent be36fb979f
commit 4bae41ffd8

View File

@@ -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',