| Summary: | [JSC] Proxy should be trapped if base value is primitive | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||
| Component: | New Bugs | Assignee: | Yusuke Suzuki <ysuzuki> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | ashvayka, darin, ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Yusuke Suzuki
2020-09-21 02:25:24 PDT
Created attachment 409264 [details]
Patch
Comment on attachment 409264 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=409264&action=review > Source/JavaScriptCore/runtime/JSCJSValue.cpp:188 > + ProxyObject* proxy = jsCast<ProxyObject*>(obj); auto to avoid repeating the same type name twice? Committed r267348: <https://trac.webkit.org/changeset/267348> Landed with the proposed change. Comment on attachment 409264 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=409264&action=review > Source/JavaScriptCore/ChangeLog:9 > + So, if proxy exists in the prototype chain for the primitive values (e.g. StringPrototype -> Proxy chain), While this patch nicely handles ProxyObject, other objects that override put() need special care as well. Please see https://bugs.webkit.org/show_bug.cgi?id=217916. |