-
mhahnenberg@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=126670 Reviewed by Oliver Hunt. This bug is due to the fact that the JS constructors created for Objective-C classes via the JSC API inherit from JSCallbackObject, which overrides hasInstance with its own customHasInstance. JSCallbackObject::customHasInstance only checks the JSClassRefs for hasInstance callbacks. If it doesn't find any callbacks, it returns false. This patch adds a hasInstance callback to constructors created for Objective-C wrapper classes. * API/JSWrapperMap.mm: (constructorHasInstance): (constructorWithCustomBrand): (allocateConstructorForCustomClass): * API/tests/testapi.mm: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6637b175