diff --git a/js/src/jit/IonAnalysis.cpp b/js/src/jit/IonAnalysis.cpp index 11dd9c9bdc1..fbd88d239a4 100644 --- a/js/src/jit/IonAnalysis.cpp +++ b/js/src/jit/IonAnalysis.cpp @@ -1764,6 +1764,10 @@ jit::AnalyzeNewScriptProperties(JSContext *cx, JSFunction *fun, // which will definitely be added to the created object before it has a // chance to escape and be accessed elsewhere. + if (fun->isInterpretedLazy() && !fun->getOrCreateScript(cx)) { + return false; + } + if (!fun->nonLazyScript()->compileAndGo) return true;