summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/annexB/language/global-code/shell.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/annexB/language/global-code/shell.js')
-rw-r--r--js/src/tests/test262/annexB/language/global-code/shell.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/test262/annexB/language/global-code/shell.js b/js/src/tests/test262/annexB/language/global-code/shell.js
new file mode 100644
index 0000000000..d8963d9d60
--- /dev/null
+++ b/js/src/tests/test262/annexB/language/global-code/shell.js
@@ -0,0 +1,14 @@
+// GENERATED, DO NOT EDIT
+// file: fnGlobalObject.js
+// Copyright (C) 2017 Ecma International. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+description: |
+ Produce a reliable global object
+defines: [fnGlobalObject]
+---*/
+
+var __globalObject = Function("return this;")();
+function fnGlobalObject() {
+ return __globalObject;
+}