Ignore:
Timestamp:
Jan 23, 2017, 2:49:26 PM (8 years ago)
Author:
[email protected]
Message:

ObjCCallbackFunction::destroy() should not use jsCast().
https://bugs.webkit.org/show_bug.cgi?id=167322

Reviewed by Filip Pizlo.

Since r210829, it is no longer correct for object destructors to use jsCast().
Fixed ObjCCallbackFunction::destroy() to use a static_cast instead.

  • API/ObjCCallbackFunction.mm:

(JSC::ObjCCallbackFunction::destroy):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/ObjCCallbackFunction.mm

    r205462 r211063  
    524524void ObjCCallbackFunction::destroy(JSCell* cell)
    525525{
    526     ObjCCallbackFunction& function = *jsCast<ObjCCallbackFunction*>(cell);
     526    ObjCCallbackFunction& function = *static_cast<ObjCCallbackFunction*>(cell);
    527527    function.impl()->destroy(*Heap::heap(cell));
    528528    function.~ObjCCallbackFunction();
Note: See TracChangeset for help on using the changeset viewer.