aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests/amd-format.js
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/systemjs/test/tests/amd-format.js')
-rw-r--r--thirdparty/systemjs/test/tests/amd-format.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/amd-format.js b/thirdparty/systemjs/test/tests/amd-format.js
new file mode 100644
index 000000000..3bc01fe38
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-format.js
@@ -0,0 +1,18 @@
+/*
+ this is AMD
+*/
+// works with comments!!!
+/*
+ At least I hope so
+*/
+"amd";
+
+var m = {
+ amd: 'amd'
+};
+define(m);
+
+// attempt to fool amd detection
+if (typeof module != 'undefined')
+ module.exports = 'hello';
+