From 770b1c9071d379c74b8e68c4c7488365b60ff08f Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Mon, 3 Aug 2020 14:31:43 -0400 Subject: 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 --- js/src/builtin/Module.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3