summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-08-03 14:04:00 -0400
committerGaming4JC <g4jc@hyperbola.info>2020-08-03 14:37:41 -0400
commit007c54c80c566813116e80037ddabc1af294e357 (patch)
treeb22e5e407b553219486c81dcf9121f59c1b2c159
parent8447c4d8a3c8e8a80c83de99dc71d64a39d6fa83 (diff)
downloadUXP-007c54c80c566813116e80037ddabc1af294e357.tar
UXP-007c54c80c566813116e80037ddabc1af294e357.tar.gz
UXP-007c54c80c566813116e80037ddabc1af294e357.tar.lz
UXP-007c54c80c566813116e80037ddabc1af294e357.tar.xz
UXP-007c54c80c566813116e80037ddabc1af294e357.zip
Issue #618 - Remove eager instantiation - Debug follow up
The added debug assertion did not take into account microtask refactoring done in BZ 1405821. Resulting in error: no member named 'IsInMicroTask' in 'nsContentUtils'. This resolves the error.
-rw-r--r--dom/base/nsJSUtils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/base/nsJSUtils.cpp b/dom/base/nsJSUtils.cpp
index 65965d74b..2601ffd87 100644
--- a/dom/base/nsJSUtils.cpp
+++ b/dom/base/nsJSUtils.cpp
@@ -315,7 +315,8 @@ nsJSUtils::ModuleInstantiate(JSContext* aCx, JS::Handle<JSObject*> aModule)
MOZ_ASSERT(aCx == nsContentUtils::GetCurrentJSContext());
MOZ_ASSERT(NS_IsMainThread());
- MOZ_ASSERT(nsContentUtils::IsInMicroTask());
+ MOZ_ASSERT(CycleCollectedJSContext::Get() &&
+ CycleCollectedJSContext::Get()->MicroTaskLevel());
NS_ENSURE_TRUE(xpc::Scriptability::Get(aModule).Allowed(), NS_OK);