Bug 168561 - Need improved C API support Symbols
Summary: Need improved C API support Symbols
Status: RESOLVED DUPLICATE of bug 175836
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-18 15:35 PST by Oliver Hunt
Modified: 2018-06-15 12:41 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 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 :-/
Comment 1 Joseph Pecoraro 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 ***