Fixed <rdar://problem/3696112>: nil from an Objective-C class seems to get wrapped...
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Jun 2004 00:54:18 +0000 (00:54 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Jun 2004 00:54:18 +0000 (00:54 +0000)
commitf3828c733b526447383a2b4abc8a15809f4c52df
treeb992fbba7ecf1273d5e6ef496c6179c7890f0b45
parent65c4c2a0d4bf2e35ab99f389ae90795b30b69000
Fixed <rdar://problem/3696112>: nil from an Objective-C class seems to get wrapped as a JavaScript proxy that will not print.

This turned out to be a show stopper for Dashboard.  We now
return Undefined() when nil is returned from a ObjC method
that returns an object type.

        Reviewed by Maciej.

        * bindings/objc/objc_utility.mm:
        (KJS::Bindings::convertObjcValueToValue):

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