Bug 188595
| Summary: | Symbol APIs miss important core functions | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Oliver Hunt <oliver> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | fpizlo, keith_miller, webkit-bug-importer, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Oliver Hunt
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???
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/48270650>