summaryrefslogtreecommitdiff
path: root/test/language/function-code/10.4.3-1-99gs.js
diff options
context:
space:
mode:
authorMike Pennisi <mike@mikepennisi.com>2016-04-22 13:07:00 -0400
committerGorkem Yakin <goyakin@microsoft.com>2016-04-25 11:09:21 -0700
commiteb644bb2da80a294282c4d98ad6fdef0bde5562f (patch)
treeda0ff0882600854fb373bda83fc2f3780361e206 /test/language/function-code/10.4.3-1-99gs.js
parent9aa4dced8d8afbe114b16650187ebb14c3e21e01 (diff)
downloadqtdeclarative-testsuites-eb644bb2da80a294282c4d98ad6fdef0bde5562f.tar.gz
Reduce reliance on `fnGlobalObject.js`
This harness function is not necessary in the majority of cases in which it is used. Remove its usage to simplify tests and decrease the amount of domain-specific knowledge necessary to contribute to the test suite. Persist the harness function itself for use by future tests for ES2015 modules (such a helper is necessary for tests that are interpreted as module code).
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.js6
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!";
}