summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-14 09:02:03 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-14 09:02:03 +0200
commitad9ee72dcd7981bc47b3844a224d69fadfdfd8ef (patch)
tree7b00445d8b93410c684c0181b18a7e85c1a3cb7b /js/src/jit-test
parent8af513a2072d7f808f03a44b32130ff6ffcd7daa (diff)
downloadUXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.tar
UXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.tar.gz
UXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.tar.lz
UXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.tar.xz
UXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.zip
Bug 1341298 - Relax expected module state when resolving modules and circular module dependencies are present
Diffstat (limited to 'js/src/jit-test')
-rw-r--r--js/src/jit-test/modules/export-circular-nonexisting-binding-1.js4
-rw-r--r--js/src/jit-test/modules/export-circular-nonexisting-binding-2.js1
-rw-r--r--js/src/jit-test/tests/modules/export-circular-nonexisting-binding.js3
3 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/modules/export-circular-nonexisting-binding-1.js b/js/src/jit-test/modules/export-circular-nonexisting-binding-1.js
new file mode 100644
index 000000000..2b91b6a28
--- /dev/null
+++ b/js/src/jit-test/modules/export-circular-nonexisting-binding-1.js
@@ -0,0 +1,4 @@
+import "export-circular-nonexisting-binding-2.js";
+
+export* from "empty.js";
+export {x} from "empty.js";
diff --git a/js/src/jit-test/modules/export-circular-nonexisting-binding-2.js b/js/src/jit-test/modules/export-circular-nonexisting-binding-2.js
new file mode 100644
index 000000000..ba7dcc1b4
--- /dev/null
+++ b/js/src/jit-test/modules/export-circular-nonexisting-binding-2.js
@@ -0,0 +1 @@
+export {x} from "export-circular-nonexisting-binding-1.js";
diff --git a/js/src/jit-test/tests/modules/export-circular-nonexisting-binding.js b/js/src/jit-test/tests/modules/export-circular-nonexisting-binding.js
new file mode 100644
index 000000000..387c7c369
--- /dev/null
+++ b/js/src/jit-test/tests/modules/export-circular-nonexisting-binding.js
@@ -0,0 +1,3 @@
+// |jit-test| module; error:SyntaxError
+
+import "export-circular-nonexisting-binding-1.js";