diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-04 10:35:22 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-04 10:35:22 +0000 |
commit | 046534432d2914c80bcab36797fe0a43ff332a98 (patch) | |
tree | cf63937edf28a18db3a8d88418f2bf5f1823cec2 /dom/base/nsJSUtils.cpp | |
parent | 121935caed68654adc14a85482a53bc9ac196da8 (diff) | |
download | UXP-046534432d2914c80bcab36797fe0a43ff332a98.tar UXP-046534432d2914c80bcab36797fe0a43ff332a98.tar.gz UXP-046534432d2914c80bcab36797fe0a43ff332a98.tar.lz UXP-046534432d2914c80bcab36797fe0a43ff332a98.tar.xz UXP-046534432d2914c80bcab36797fe0a43ff332a98.zip |
Issue #618 - Remove eager instantiation
This backs out the stuff added in Bug 1295978.
Ref: BZ 1295978, 1388728
Diffstat (limited to 'dom/base/nsJSUtils.cpp')
-rw-r--r-- | dom/base/nsJSUtils.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/base/nsJSUtils.cpp b/dom/base/nsJSUtils.cpp index c294cfdba..65965d74b 100644 --- a/dom/base/nsJSUtils.cpp +++ b/dom/base/nsJSUtils.cpp @@ -315,6 +315,7 @@ nsJSUtils::ModuleInstantiate(JSContext* aCx, JS::Handle<JSObject*> aModule) MOZ_ASSERT(aCx == nsContentUtils::GetCurrentJSContext()); MOZ_ASSERT(NS_IsMainThread()); + MOZ_ASSERT(nsContentUtils::IsInMicroTask()); NS_ENSURE_TRUE(xpc::Scriptability::Get(aModule).Allowed(), NS_OK); |