[Cocoa] Wrappers mishandle NULL values in arrays and dictionaries
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Nov 2013 21:56:07 +0000 (21:56 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Nov 2013 21:56:07 +0000 (21:56 +0000)
commit1272c0ad4f888af3a9f4e8ecb7bf54d0b95fd62b
treeedfbaa2578b466cd7a5d351d5cbd8a528db8ce97
parent9ba5358227d2a1f60f21c2d4ee8ac62ade44f116
[Cocoa] Wrappers mishandle NULL values in arrays and dictionaries
https://bugs.webkit.org/show_bug.cgi?id=123671

Reviewed by Darin Adler.

* Shared/Cocoa/WKNSArray.mm:
(-[WKNSArray objectAtIndex:]): Represent a NULL object as NSNull.
* Shared/Cocoa/WKNSDictionary.mm:
(-[WKNSDictionary objectForKey:]): Represent a NULL value as NSNull.
* Shared/ImmutableDictionary.h:
(WebKit::ImmutableDictionary::get): Added this overload that returns whether the key exists.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/Cocoa/WKNSArray.mm
Source/WebKit2/Shared/Cocoa/WKNSDictionary.mm
Source/WebKit2/Shared/ImmutableDictionary.h