aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests/global-inaccessible-props.js
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/systemjs/test/tests/global-inaccessible-props.js')
-rw-r--r--thirdparty/systemjs/test/tests/global-inaccessible-props.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/global-inaccessible-props.js b/thirdparty/systemjs/test/tests/global-inaccessible-props.js
new file mode 100644
index 000000000..aee7ce02b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-inaccessible-props.js
@@ -0,0 +1,8 @@
+
+(function(window) {
+ if (!('errorOnAccess' in window))
+ throw Error();
+
+ window.test = 'result of global-inaccessible-props';
+
+})(typeof window != 'undefined' ? window : global);