diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-04 10:35:22 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-10 18:30:30 +0000 |
commit | 1e14031a5940f6846f6ecce1b3c889b6a3d9b67a (patch) | |
tree | 24576100e20b270c9a027345d996996104809c38 /dom/base/nsJSUtils.cpp | |
parent | 765c90318f192ba18848095133b0531c3162678d (diff) | |
download | UXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.tar UXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.tar.gz UXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.tar.lz UXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.tar.xz UXP-1e14031a5940f6846f6ecce1b3c889b6a3d9b67a.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 f26616f37..5c7e20424 100644 --- a/dom/base/nsJSUtils.cpp +++ b/dom/base/nsJSUtils.cpp @@ -313,6 +313,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); |