Changeset 51068 in webkit for trunk/JavaScriptCore/API/APICast.h


Ignore:
Timestamp:
Nov 17, 2009, 12:41:10 AM (16 years ago)
Author:
[email protected]
Message:

Incorrect use of JavaScriptCore API in DumpRenderTree
https://bugs.webkit.org/show_bug.cgi?id=31577

Reviewed by Maciej Stachowiak

Return undefined rather than a literal null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/APICast.h

    r50964 r51068  
    5252inline JSC::ExecState* toJS(JSContextRef c)
    5353{
     54    ASSERT(c);
    5455    return reinterpret_cast<JSC::ExecState*>(const_cast<OpaqueJSContext*>(c));
    5556}
     
    5758inline JSC::ExecState* toJS(JSGlobalContextRef c)
    5859{
     60    ASSERT(c);
    5961    return reinterpret_cast<JSC::ExecState*>(c);
    6062}
    6163
    62 inline JSC::JSValue toJS(JSC::ExecState*, JSValueRef v)
     64inline JSC::JSValue toJS(JSC::ExecState* exec, JSValueRef v)
    6365{
     66    ASSERT_UNUSED(exec, exec);
     67    ASSERT(v);
    6468#if USE(JSVALUE32_64)
    6569    JSC::JSCell* jsCell = reinterpret_cast<JSC::JSCell*>(const_cast<OpaqueJSValue*>(v));
     
    7478}
    7579
    76 inline JSC::JSValue toJSForGC(JSC::ExecState*, JSValueRef v)
     80inline JSC::JSValue toJSForGC(JSC::ExecState* exec, JSValueRef v)
    7781{
     82    ASSERT_UNUSED(exec, exec);
     83    ASSERT(v);
    7884#if USE(JSVALUE32_64)
    7985    JSC::JSCell* jsCell = reinterpret_cast<JSC::JSCell*>(const_cast<OpaqueJSValue*>(v));
Note: See TracChangeset for help on using the changeset viewer.