diff options
Diffstat (limited to 'test/language/function-code/10.4.3-1-24-s.js')
-rw-r--r-- | test/language/function-code/10.4.3-1-24-s.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/language/function-code/10.4.3-1-24-s.js b/test/language/function-code/10.4.3-1-24-s.js index a30f3bd31..1f42d08f8 100644 --- a/test/language/function-code/10.4.3-1-24-s.js +++ b/test/language/function-code/10.4.3-1-24-s.js @@ -7,16 +7,13 @@ description: > Strict Mode - checking 'this' (New'ed object from FunctionExpression includes strict directive prologue) flags: [noStrict] -includes: - - runTestCase.js - - fnGlobalObject.js +includes: [fnGlobalObject.js] ---*/ -function testcase() { var f = function () { "use strict"; return this; } -return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); -} -runTestCase(testcase); + +assert.notSameValue((new f()), fnGlobalObject(), '(new f())'); +assert.notSameValue(typeof (new f()), "undefined", 'typeof (new f())'); |