You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[JSC] Proxy should be trapped if base value is primitive
https://bugs.webkit.org/show_bug.cgi?id=216764
Reviewed by Darin Adler.
JSTests:
* stress/proxy-trap-in-primitive.js: Added.
(shouldBe):
* test262/expectations.yaml:
Source/JavaScriptCore:
While we have special care in JSObject::putInline etc., we missed it in JSValue::putToPrimitive.
So, if proxy exists in the prototype chain for the primitive values (e.g. StringPrototype -> Proxy chain),
we miss the Proxy trap. We should have ProxyObject special check in JSValue::putToPrimitive too.
* runtime/JSCJSValue.cpp:
(JSC::JSValue::putToPrimitive):
Canonical link: https://commits.webkit.org/229567@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267348 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0 commit comments