diff options
Diffstat (limited to 'test/language/function-code/10.4.3-1-99gs.js')
-rw-r--r-- | test/language/function-code/10.4.3-1-99gs.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/language/function-code/10.4.3-1-99gs.js b/test/language/function-code/10.4.3-1-99gs.js index 6cf1d8153..fb85ebbbd 100644 --- a/test/language/function-code/10.4.3-1-99gs.js +++ b/test/language/function-code/10.4.3-1-99gs.js @@ -8,10 +8,10 @@ description: > declaration called by strict Function.prototype.bind(globalObject)()) flags: [noStrict] -includes: [fnGlobalObject.js] ---*/ -function f() { return this===fnGlobalObject();}; -if (! ((function () {"use strict"; return f.bind(fnGlobalObject())();})())){ +var global = this; +function f() { return this===global;}; +if (! ((function () {"use strict"; return f.bind(global)();})())){ throw "'this' had incorrect value!"; } |