Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[[HasProperty]] result of Proxy in prototype chain is ignored
https://bugs.webkit.org/show_bug.cgi?id=203560 Patch by Alexey Shvayka <shvaikalesh@gmail.com> on 2019-11-01 Reviewed by Ross Kirsling. JSTests: * stress/proxy-get-prototype-of.js: Correct Proxy "has" trap test. * test262/expectations.yaml: Mark 6 test cases as passing. Source/JavaScriptCore: Before this change, when [[HasProperty]] was called on ordinary object with Proxy in prototype chain, falsy result of Proxy's "has" trap was ignored and prototype chain was inspected further. According to spec, OrdinaryHasProperty unconditionally returns result of parent's [[HasProperty]] call. (step 5.a of https://tc39.es/ecma262/#sec-ordinaryhasproperty) * runtime/JSObjectInlines.h: (JSC::JSObject::getPropertySlot): (JSC::JSObject::getNonIndexPropertySlot): Canonical link: https://commits.webkit.org/217113@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
33 additions
and 13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters