Bug 168561

Summary: Need improved C API support Symbols
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ggaren, joepeck, saam, ysuzuki
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Oliver Hunt
Reported 2017-02-18 15:35:37 PST
The C API does not allow symbols as property names, this effects (principally) JSObjectGetProperty/SetProperty which still take JSStringRef, but we also need to update the class API callbacks. In addition to the accessors, we also need a way to create symbols without resorting to JS. Im not sure what such an API would look like, as we've already taken the obvious names -- we could determine string vs. non-string by checking the property name pointer against the GC heap, but that has interesting hazards, and i'm not sure it would be well received during api review :-/
Attachments
Joseph Pecoraro
Comment 1 2018-06-15 12:41:21 PDT
It looks like there is an implementation on: https://bugs.webkit.org/show_bug.cgi?id=175836 I'll dup. *** This bug has been marked as a duplicate of bug 175836 ***
Note You need to log in before you can comment on or make changes to this bug.