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
commit43e0632cd474265ef0660bf881f4472996c8ad5a (patch)
tree70b3b307f37c54a66419995c74a3ac2d06ccb19a /js/src/jit-test/tests/modules/bug-1420420-3.js
parent786e344698c5a577ea82e2fa0d29faf2a2d851ea (diff)
downloaduxp-43e0632cd474265ef0660bf881f4472996c8ad5a.tar.gz
Issue #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();
+});
+