diff options
Diffstat (limited to 'test/language/function-code/10.4.3-1-46gs.js')
-rw-r--r-- | test/language/function-code/10.4.3-1-46gs.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/language/function-code/10.4.3-1-46gs.js b/test/language/function-code/10.4.3-1-46gs.js index 53935f5fa..e7cfd0294 100644 --- a/test/language/function-code/10.4.3-1-46gs.js +++ b/test/language/function-code/10.4.3-1-46gs.js @@ -8,15 +8,16 @@ description: > with a strict directive prologue defined within a FunctionDeclaration) flags: [noStrict] -includes: [fnGlobalObject.js] ---*/ +var global = this; + function f1() { var f = function () { "use strict"; return typeof this; } - return (f()==="undefined") && (this===fnGlobalObject()); + return (f()==="undefined") && (this===global); } if (! f1()) { throw "'this' had incorrect value!"; |