Ignore:
Timestamp:
Nov 13, 2009, 12:42:16 PM (16 years ago)
Author:
[email protected]
Message:

JSValueProtect and JSValueUnprotect don't protect API wrapper values
https://bugs.webkit.org/show_bug.cgi?id=31485

Reviewed by Geoff Garen.

Make JSValueProtect/Unprotect use a new 'toJS' function, 'toJSForGC' that
does not attempt to to strip out API wrapper objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSValueRef.cpp

    r43160 r50964  
    308308    JSLock lock(exec);
    309309
    310     JSValue jsValue = toJS(exec, value);
     310    JSValue jsValue = toJSForGC(exec, value);
    311311    gcProtect(jsValue);
    312312}
     
    318318    JSLock lock(exec);
    319319
    320     JSValue jsValue = toJS(exec, value);
     320    JSValue jsValue = toJSForGC(exec, value);
    321321    gcUnprotect(jsValue);
    322322}
Note: See TracChangeset for help on using the changeset viewer.