diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-12 02:03:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 02:03:53 +0200 |
commit | 7ee65ec4c9f3fec534849c238b552903f54ce706 (patch) | |
tree | e4ee854c5cd658ac839921f0027d324f37fad14c /dom | |
parent | 936438dd55b30c1b6d435905c9494ef6a6511489 (diff) | |
parent | 6ac6136d17b86c79be227bd6255d42a52d40c959 (diff) | |
download | UXP-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.cpp | 3 |
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); |