From 1e14031a5940f6846f6ecce1b3c889b6a3d9b67a Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 4 Jul 2020 10:35:22 +0000 Subject: Issue #618 - Remove eager instantiation This backs out the stuff added in Bug 1295978. Ref: BZ 1295978, 1388728 --- dom/base/nsJSUtils.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'dom/base/nsJSUtils.cpp') 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 aModule) MOZ_ASSERT(aCx == nsContentUtils::GetCurrentJSContext()); MOZ_ASSERT(NS_IsMainThread()); + MOZ_ASSERT(nsContentUtils::IsInMicroTask()); NS_ENSURE_TRUE(xpc::Scriptability::Get(aModule).Allowed(), NS_OK); -- cgit v1.2.3