arai-a / smoosh-sync

Automation to make jsparagus and SpiderMonkey bytecode in sync
2 stars 0 forks source link

/js/src/frontend/Stencil.cpp has been updated (4091bed4) #345

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

Files

Changesets

Diffs

/js/src/frontend/Stencil.cpp

--- 7d89a3d4f78eaa57e2990bd0bbd0dbb81a07e3b4/js/src/frontend/Stencil.cpp
+++ 4091bed4a0aae7772537e08e6cb49bf0bc7434c9/js/src/frontend/Stencil.cpp
@@ -2035,16 +2035,20 @@ static JSFunction* CreateFunctionFast(JS
   fun->initEnvironment(nullptr);

   if (script.functionAtom) {
     JSAtom* atom = atomCache.getExistingAtomAt(cx, script.functionAtom);
     MOZ_ASSERT(atom);
     fun->initAtom(atom);
   }

+#ifdef DEBUG
+  fun->assertFunctionKindIntegrity();
+#endif
+
   return fun;
 }

 static JSFunction* CreateFunction(JSContext* cx,
                                   CompilationAtomCache& atomCache,
                                   const CompilationStencil& stencil,
                                   const ScriptStencil& script,
                                   const ScriptStencilExtra& scriptExtra,