Ignore:
Timestamp:
Mar 25, 2009, 7:39:38 PM (16 years ago)
Author:
[email protected]
Message:

Fix exception handling for instanceof in the interpreter.

Reviewed by Geoff Garen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r41277 r41999  
    17331733
    17341734        JSObject* baseObj = asObject(baseVal);
    1735         callFrame[dst] = jsBoolean(baseObj->structure()->typeInfo().implementsHasInstance() ? baseObj->hasInstance(callFrame, callFrame[value].jsValue(callFrame), callFrame[baseProto].jsValue(callFrame)) : false);
     1735        if (baseObj->structure()->typeInfo().implementsHasInstance()) {
     1736            bool result = baseObj->hasInstance(callFrame, callFrame[value].jsValue(callFrame), callFrame[baseProto].jsValue(callFrame));
     1737            CHECK_FOR_EXCEPTION();
     1738            callFrame[dst] = jsBoolean(result);
     1739        } else
     1740            callFrame[dst] = jsBoolean(false);
    17361741
    17371742        vPC += 5;
Note: See TracChangeset for help on using the changeset viewer.