Fixed <rdar://problem/3964634> undefined property value from binding seems to evalua...
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jan 2005 00:41:59 +0000 (00:41 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jan 2005 00:41:59 +0000 (00:41 +0000)
commitddcc04b33ed41b9daf1103563beb3229e6d7a244
treeb8c4a90aed6a52da9186e73cbef30634e7f789f1
parent8764f55c8ecb8b357246e96681ad0f2126a6a08d
Fixed <rdar://problem/3964634> undefined property value from binding seems to evaluate to true in an if statement

The comprehensive fix for this problem requires new API, as described in 3965326.  However,
given that we can't add new API at this point, the 'ObjcFallbackObjectImp' will behave
like and Undefined object if  invokeUndefinedMethodFromWebScript:withArguments: isn't
implemented on the bound object.

        Reviewed by Chris.

        * bindings/objc/objc_runtime.h:
        * bindings/objc/objc_runtime.mm:
        (ObjcFallbackObjectImp::type):
        (ObjcFallbackObjectImp::implementsCall):
        (ObjcFallbackObjectImp::toBoolean):
        * bindings/testbindings.mm:
        (+[MyFirstInterface isSelectorExcludedFromWebScript:]):
        (+[MyFirstInterface isKeyExcludedFromWebScript:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8418 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/bindings/objc/objc_runtime.h
JavaScriptCore/bindings/objc/objc_runtime.mm
JavaScriptCore/bindings/testbindings.mm