summaryrefslogtreecommitdiffstats
path: root/dom/base/nsJSUtils.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-04 10:35:22 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-10 18:30:30 +0000
commit1e14031a5940f6846f6ecce1b3c889b6a3d9b67a (patch)
tree24576100e20b270c9a027345d996996104809c38 /dom/base/nsJSUtils.cpp
parent765c90318f192ba18848095133b0531c3162678d (diff)
downloadUXP-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.cpp1
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);