-
mhahnenberg@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=69156 Reviewed by Geoffrey Garen. Added callbacks for toString and valueOf which are implicitly added to a client object's prototype if they provide a convertToType callback when declaring their class through the JSC API. * API/JSCallbackFunction.cpp: (JSC::JSCallbackFunction::toStringCallback): (JSC::JSCallbackFunction::valueOfCallback): * API/JSCallbackFunction.h: * API/JSClassRef.cpp: (OpaqueJSClass::prototype): * API/tests/testapi.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96627 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ff057a67