summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/modules
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-14 09:00:53 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-14 09:00:53 +0200
commit8af513a2072d7f808f03a44b32130ff6ffcd7daa (patch)
tree1f7728915b9cde803b6058166204c5e4d7c738d7 /js/src/jit-test/modules
parentc60cefb1b02be321f56f64dcccc6d6b7670e4293 (diff)
downloadUXP-8af513a2072d7f808f03a44b32130ff6ffcd7daa.tar
UXP-8af513a2072d7f808f03a44b32130ff6ffcd7daa.tar.gz
UXP-8af513a2072d7f808f03a44b32130ff6ffcd7daa.tar.lz
UXP-8af513a2072d7f808f03a44b32130ff6ffcd7daa.tar.xz
UXP-8af513a2072d7f808f03a44b32130ff6ffcd7daa.zip
Bug 1341411 - Support circular module dependencies through export* per ES2017
Diffstat (limited to 'js/src/jit-test/modules')
-rw-r--r--js/src/jit-test/modules/empty.js1
-rw-r--r--js/src/jit-test/modules/export-star-circular-1.js1
-rw-r--r--js/src/jit-test/modules/export-star-circular-2.js3
3 files changed, 5 insertions, 0 deletions
diff --git a/js/src/jit-test/modules/empty.js b/js/src/jit-test/modules/empty.js
new file mode 100644
index 000000000..bd9ec079d
--- /dev/null
+++ b/js/src/jit-test/modules/empty.js
@@ -0,0 +1 @@
+// Intentionally empty.
diff --git a/js/src/jit-test/modules/export-star-circular-1.js b/js/src/jit-test/modules/export-star-circular-1.js
new file mode 100644
index 000000000..9a0771b02
--- /dev/null
+++ b/js/src/jit-test/modules/export-star-circular-1.js
@@ -0,0 +1 @@
+export* from "export-star-circular-2.js";
diff --git a/js/src/jit-test/modules/export-star-circular-2.js b/js/src/jit-test/modules/export-star-circular-2.js
new file mode 100644
index 000000000..b273d9cef
--- /dev/null
+++ b/js/src/jit-test/modules/export-star-circular-2.js
@@ -0,0 +1,3 @@
+export {y as x} from "export-star-circular-1.js";
+
+export var y = "pass";