Paste number 60579: stupidity for cpst

Paste number 60579: stupidity for cpst
Pasted by: olliej
5 days, 15 hours ago
#webkit | Context in IRC logs
Paste contents:
Raw Source | XML | Display As
diff --git a/JavaScriptCore/kjs/function.cpp b/JavaScriptCore/kjs/function.cpp
index a9fef6e..b31ac88 100644
--- a/JavaScriptCore/kjs/function.cpp
+++ b/JavaScriptCore/kjs/function.cpp
@@ -86,7 +86,10 @@ JSValue* FunctionImp::callAsFunction(ExecState* exec, JSObject* thisObj, const L
     RegisterFileStack* stack = &exec->dynamicGlobalObject()->registerFileStack();
     RegisterFile* current = stack->current();
     if (!current->safeForReentry()) {
-        stack->pushFunctionRegisterFile();
+        RegisterFile* file = stack->pushFunctionRegisterFile();
+        ASSERT(file == stack->current());
+        ASSERT(file->safeForReentry());
+        ASSERT(stack->current()->safeForReentry());
         JSValue* result = machine().execute(body.get(), exec, this, thisObj, args, stack, _scope.node(), &exception);
         stack->popFunctionRegisterFile();
         exec->setException(exception);

This paste has no annotations.

Colorize as:
Show Line Numbers

Ads absolutely not by Google

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.