summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-12 02:03:53 +0200
committerGitHub <noreply@github.com>2020-07-12 02:03:53 +0200
commit7ee65ec4c9f3fec534849c238b552903f54ce706 (patch)
treee4ee854c5cd658ac839921f0027d324f37fad14c /dom
parent936438dd55b30c1b6d435905c9494ef6a6511489 (diff)
parent6ac6136d17b86c79be227bd6255d42a52d40c959 (diff)
downloadUXP-7ee65ec4c9f3fec534849c238b552903f54ce706.tar
UXP-7ee65ec4c9f3fec534849c238b552903f54ce706.tar.gz
UXP-7ee65ec4c9f3fec534849c238b552903f54ce706.tar.lz
UXP-7ee65ec4c9f3fec534849c238b552903f54ce706.tar.xz
UXP-7ee65ec4c9f3fec534849c238b552903f54ce706.zip
Merge pull request #1607 from g4jc/618
Issue #618 - Remove eager instantiation - Debug follow up
Diffstat (limited to 'dom')
-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);