Bug 112377 - Objective-C API: Nested dictionaries are not converted properly in the Objective-C binding
Summary: Objective-C API: Nested dictionaries are not converted properly in the Object...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Hahnenberg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-14 12:23 PDT by Mark Hahnenberg
Modified: 2013-03-14 13:17 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.92 KB, patch)
2013-03-14 12:30 PDT, Mark Hahnenberg
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hahnenberg 2013-03-14 12:23:44 PDT
"Given an objective-C method like the following, exposed into JS via the new Objective-C interface:

- (void)handleTheDictionary:(NSDictionary *)myDict;

And a JS dictionary and call like so:

myDict = {
    "foo" = 1,
    "bar" = { "baz" : 2 }
}

handleTheDictionary(myDict);

The dictionary received by objective c will actually only be:

{ "baz": 2 }.

Further investigations show that only the deepest dictionary is used."
Comment 1 Mark Hahnenberg 2013-03-14 12:23:54 PDT
<rdar://problem/13422001>
Comment 2 Mark Hahnenberg 2013-03-14 12:30:10 PDT
Created attachment 193172 [details]
Patch
Comment 3 WebKit Review Bot 2013-03-14 13:17:12 PDT
Comment on attachment 193172 [details]
Patch

Clearing flags on attachment: 193172

Committed r145842: <http://trac.webkit.org/changeset/145842>
Comment 4 WebKit Review Bot 2013-03-14 13:17:15 PDT
All reviewed patches have been landed.  Closing bug.