Ignore:
Timestamp:
Apr 29, 2009, 1:25:09 PM (16 years ago)
Author:
[email protected]
Message:

Crash in profiler due to incorrect assuming displayName would be a string.

Reviewed by Steve Falkenburg

Fixed by adding a type guard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/InternalFunction.cpp

    r42480 r43006  
    5353    JSValuePtr displayName = getDirect(globalData->propertyNames->displayName);
    5454   
    55     if (displayName)
     55    if (displayName && isJSString(globalData, displayName))
    5656        return asString(displayName)->value();
    5757   
Note: See TracChangeset for help on using the changeset viewer.