summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/modules/bug-1420420-3.js
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-08 12:58:30 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-08 12:58:30 +0000
commit0938bd3c91f7b739b5b9f02050e53433be4f6d65 (patch)
tree70b3b307f37c54a66419995c74a3ac2d06ccb19a /js/src/jit-test/tests/modules/bug-1420420-3.js
parent2ded02bb1c78a907dc7854f28878a067fd1a59b2 (diff)
downloaduxp-0938bd3c91f7b739b5b9f02050e53433be4f6d65.tar.gz
Issue mcp-graveyard/UXP#618 - Align error handling for module scripts with the spec (again)
This updates module implementation to match spec regarding handling of instantiation errors, after it was changed yet again, this time to not remember instantiation errors, but instead immediately rethrow applicable ones. Ref: BZ 1420420
Diffstat (limited to 'js/src/jit-test/tests/modules/bug-1420420-3.js')
-rw-r--r--js/src/jit-test/tests/modules/bug-1420420-3.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/modules/bug-1420420-3.js b/js/src/jit-test/tests/modules/bug-1420420-3.js
new file mode 100644
index 0000000000..236c023b9c
--- /dev/null
+++ b/js/src/jit-test/tests/modules/bug-1420420-3.js
@@ -0,0 +1,9 @@
+if (!('stackTest' in this))
+ quit();
+
+let a = parseModule(`throw new Error`);
+a.declarationInstantiation();
+stackTest(function() {
+ a.evaluation();
+});
+