summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/object/browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/object/browser.js')
-rw-r--r--js/src/tests/non262/object/browser.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/tests/non262/object/browser.js b/js/src/tests/non262/object/browser.js
new file mode 100644
index 0000000000..0e57d1fcd0
--- /dev/null
+++ b/js/src/tests/non262/object/browser.js
@@ -0,0 +1,7 @@
+var GLOBAL = 'Window';
+
+function isObject(obj)
+{
+ return obj instanceof Object || obj == window;
+}
+