diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-08 12:58:30 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-08 12:58:30 +0000 |
commit | 43e0632cd474265ef0660bf881f4472996c8ad5a (patch) | |
tree | 70b3b307f37c54a66419995c74a3ac2d06ccb19a /js/src/jit-test/tests/modules/bug-1420420-3.js | |
parent | 786e344698c5a577ea82e2fa0d29faf2a2d851ea (diff) | |
download | UXP-43e0632cd474265ef0660bf881f4472996c8ad5a.tar UXP-43e0632cd474265ef0660bf881f4472996c8ad5a.tar.gz UXP-43e0632cd474265ef0660bf881f4472996c8ad5a.tar.lz UXP-43e0632cd474265ef0660bf881f4472996c8ad5a.tar.xz UXP-43e0632cd474265ef0660bf881f4472996c8ad5a.zip |
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.js | 9 |
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 000000000..236c023b9 --- /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(); +}); + |