summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-08-03 14:31:43 -0400
committerMoonchild <moonchild@palemoon.org>2020-08-30 09:35:19 +0000
commit770b1c9071d379c74b8e68c4c7488365b60ff08f (patch)
treecbff1dce5801c6a9b113c761771abcee370c9306
parentdaf56131a73bb2b214fee4d7ba78abe0576ba696 (diff)
downloadUXP-770b1c9071d379c74b8e68c4c7488365b60ff08f.tar
UXP-770b1c9071d379c74b8e68c4c7488365b60ff08f.tar.gz
UXP-770b1c9071d379c74b8e68c4c7488365b60ff08f.tar.lz
UXP-770b1c9071d379c74b8e68c4c7488365b60ff08f.tar.xz
UXP-770b1c9071d379c74b8e68c4c7488365b60ff08f.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
-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