diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-14 09:02:03 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-14 09:02:03 +0200 |
commit | ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef (patch) | |
tree | 7b00445d8b93410c684c0181b18a7e85c1a3cb7b /js/src/jit-test | |
parent | 8af513a2072d7f808f03a44b32130ff6ffcd7daa (diff) | |
download | UXP-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')
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"; |