summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-08-03 14:31:43 -0400
committerGaming4JC <g4jc@hyperbola.info>2020-08-03 14:37:42 -0400
commitc5b47eb66c75642ded54474f3f559ff83c129c09 (patch)
treef7359e9879c71d7da3e18638ee312e3ae204dfe3 /js
parent609815070b88230c896bfa9aa25fe280bc090425 (diff)
downloadUXP-c5b47eb66c75642ded54474f3f559ff83c129c09.tar
UXP-c5b47eb66c75642ded54474f3f559ff83c129c09.tar.gz
UXP-c5b47eb66c75642ded54474f3f559ff83c129c09.tar.lz
UXP-c5b47eb66c75642ded54474f3f559ff83c129c09.tar.xz
UXP-c5b47eb66c75642ded54474f3f559ff83c129c09.zip
Issue #618 - Align error handling for module scripts with the spec - Debug follow up
MODULE_STATUS_ERRORED is no more. Replacing with newer API. Ref: BZ 1420420
Diffstat (limited to 'js')
-rw-r--r--js/src/builtin/Module.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/builtin/Module.js b/js/src/builtin/Module.js
index c9f20c18c..355303d44 100644
--- a/js/src/builtin/Module.js
+++ b/js/src/builtin/Module.js
@@ -67,7 +67,8 @@ function ModuleGetExportedNames(exportStarSet = [])
function ModuleSetStatus(module, newStatus)
{
- assert(newStatus >= MODULE_STATUS_ERRORED && newStatus <= MODULE_STATUS_EVALUATED,
+ assert(newStatus >= MODULE_STATUS_UNINSTANTIATED &&
+ newStatus <= MODULE_STATUS_EVALUATED_ERROR,
"Bad new module status in ModuleSetStatus");
// Note that under OOM conditions we can fail the module instantiation