diff --git a/js/src/jsinfer.cpp b/js/src/jsinfer.cpp index 5f9088bd568f..7fb2443c67e1 100644 --- a/js/src/jsinfer.cpp +++ b/js/src/jsinfer.cpp @@ -5253,6 +5253,7 @@ CheckNewScriptProperties(JSContext *cx, HandleTypeObject type, HandleFunction fu if (!state.baseobj) { if (type->newScript) type->clearNewScript(cx); + cx->compartment->types.setPendingNukeTypes(cx); return; }