aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests/worker-traceur.js
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/systemjs/test/tests/worker-traceur.js')
-rw-r--r--thirdparty/systemjs/test/tests/worker-traceur.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/worker-traceur.js b/thirdparty/systemjs/test/tests/worker-traceur.js
new file mode 100644
index 000000000..30902cf40
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/worker-traceur.js
@@ -0,0 +1,12 @@
+importScripts('../../dist/system.src.js');
+
+System.paths['traceur'] = '../../node_modules/traceur/bin/traceur.js';
+
+System.import('es6-and-amd.js').then(function(m) {
+ postMessage({
+ amd: m.amd_module,
+ es6: m.es6_module
+ });
+}, function(err) {
+ console.error(err);
+});