Bug 188595 - Symbol APIs miss important core functions
Summary: Symbol APIs miss important core functions
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-08-14 20:48 PDT by Oliver Hunt
Modified: 2019-02-21 02:56 PST (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 2018-08-14 20:48:05 PDT
We need to provide APIs that allow some degree of reasoning about symbols.

Something along the lines of:

JSValueRef JSValueToPropertyKey(JSContextRef ctx, JSValueRef key, JSValueRef* exception);
bool JSValueIsPropertyKey(JSValueRef key); // Generally useful
uint64_t JSValueHashValueForKey(JSValueRef); // Hash values are useful. They really are. Should be distinct from pointer. Implies need for:
bool JSValueKeysEqual(JSValueRef, JSValueRef); // naming???
Comment 1 Radar WebKit Bug Importer 2019-02-21 02:56:51 PST
<rdar://problem/48270650>