JSValueProtect and JSValueUnprotect don't protect API wrapper values
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Nov 2009 20:42:16 +0000 (20:42 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Nov 2009 20:42:16 +0000 (20:42 +0000)
commit3aa2f1e3ad47bed0c533b7740732cbeb1b70fe48
treeb6ad3e92713b732de18ee4af66fce22e7b9bb4cf
parentdd5e39c0946dd817f314a35ca7f1c2f1f832b12b
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@50964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/API/APICast.h
JavaScriptCore/API/JSValueRef.cpp
JavaScriptCore/API/tests/testapi.c
JavaScriptCore/ChangeLog