summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/src/builtin/Module.js3
-rw-r--r--js/src/builtin/ModuleObject.cpp2
2 files changed, 3 insertions, 2 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
diff --git a/js/src/builtin/ModuleObject.cpp b/js/src/builtin/ModuleObject.cpp
index 44e5a2c88..728929e8c 100644
--- a/js/src/builtin/ModuleObject.cpp
+++ b/js/src/builtin/ModuleObject.cpp
@@ -272,7 +272,7 @@ IndirectBindingMap::put(JSContext* cx, HandleId name,
// different zone to the final module. Lazily allocate the map so we don't
// have to switch its zone when merging compartments.
if (!map_) {
- MOZ_ASSERT(!cx->zone()->group()->createdForHelperThread());
+ MOZ_ASSERT(!cx->zone()->usedByExclusiveThread);
map_.emplace(cx->zone());
if (!map_->init()) {
map_.reset();