[Webkit-unassigned] [Bug 248184] New: JSValue API converts String objects to NSDictionary instead of NSString
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 21 11:51:44 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=248184
Bug ID: 248184
Summary: JSValue API converts String objects to NSDictionary
instead of NSString
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: timothy at apple.com
If a script returns a result or passes a function a String object (not a value) -- like "new String('Test')". And that ObjC -[JSValue toObject] method is called, it will return a NSDictionary with keys for each character instead of an NSString.
This was surprising to me, but it does make sense at a fundamental level. I would just expect an NSString since it is not that useful as an NSDictionary.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221121/8d446a63/attachment.htm>
More information about the webkit-unassigned
mailing list