summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Stencil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/frontend/Stencil.cpp')
-rw-r--r--js/src/frontend/Stencil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/frontend/Stencil.cpp b/js/src/frontend/Stencil.cpp
index 67ed2a90ca..447a83f595 100644
--- a/js/src/frontend/Stencil.cpp
+++ b/js/src/frontend/Stencil.cpp
@@ -2783,6 +2783,8 @@ JSScript* CompilationStencil::instantiateSelfHostedTopLevelForRealm(
JSFunction* CompilationStencil::instantiateSelfHostedLazyFunction(
JSContext* cx, CompilationAtomCache& atomCache, ScriptIndex index,
Handle<JSAtom*> name) {
+ MOZ_ASSERT(cx->zone()->suppressAllocationMetadataBuilder);
+
GeneratorKind generatorKind = scriptExtra[index].immutableFlags.hasFlag(
ImmutableScriptFlagsEnum::IsGenerator)
? GeneratorKind::Generator