Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JSC] Hoist configurability checks in ProxyObject's "get" and "set" traps #10805

Conversation

shvaikalesh
Copy link
Member

@shvaikalesh shvaikalesh commented Feb 28, 2023

2356400

[JSC] Hoist configurability checks in ProxyObject's "get" and "set" traps
https://bugs.webkit.org/show_bug.cgi?id=253083
<rdar://problem/106035527>

Reviewed by Yusuke Suzuki.

This patch implements editorial spec change [1], making the code a bit easier to read
and sets the stage for a follow-up patch that will make the trap result validation conditional.

No behavior change.

[1]: tc39/ecma262#895

* Source/JavaScriptCore/runtime/ProxyObject.cpp:
(JSC::ProxyObject::validateGetTrapResult):
(JSC::ProxyObject::validateSetTrapResult):

Canonical link: https://commits.webkit.org/260957@main

a270a8f

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ›  gtk
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2   πŸ§ͺ api-mac   πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk1   πŸ§ͺ api-gtk
βœ… πŸ›  πŸ§ͺ jsc βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2 βœ… πŸ›  jsc-armv7
βœ… πŸ›  πŸ§ͺ jsc-arm64 βœ… πŸ›  tv-sim   πŸ§ͺ mac-AS-debug-wk2 βœ… πŸ§ͺ jsc-armv7-tests
βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress βœ… πŸ›  jsc-mips
βœ… πŸ›  watch-sim βœ… πŸ§ͺ jsc-mips-tests
❌ πŸ›  πŸ§ͺ unsafe-merge

@shvaikalesh shvaikalesh requested a review from a team as a code owner February 28, 2023 18:04
@shvaikalesh shvaikalesh self-assigned this Feb 28, 2023
@shvaikalesh shvaikalesh added the JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues. label Feb 28, 2023
Copy link
Member

@Constellation Constellation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

@shvaikalesh shvaikalesh added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Feb 28, 2023
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/JSC-Hoist-configurability-checks-in-ProxyObjects-get-and-set-traps branch from a270a8f to a0ff0ac Compare February 28, 2023 20:10
…raps

https://bugs.webkit.org/show_bug.cgi?id=253083
<rdar://problem/106035527>

Reviewed by Yusuke Suzuki.

This patch implements editorial spec change [1], making the code a bit easier to read
and sets the stage for a follow-up patch that will make the trap result validation conditional.

No behavior change.

[1]: tc39/ecma262#895

* Source/JavaScriptCore/runtime/ProxyObject.cpp:
(JSC::ProxyObject::validateGetTrapResult):
(JSC::ProxyObject::validateSetTrapResult):

Canonical link: https://commits.webkit.org/260957@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/JSC-Hoist-configurability-checks-in-ProxyObjects-get-and-set-traps branch from a0ff0ac to 2356400 Compare February 28, 2023 20:12
@webkit-commit-queue
Copy link
Collaborator

Committed 260957@main (2356400): https://commits.webkit.org/260957@main

Reviewed commits have been landed. Closing PR #10805 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 2356400 into WebKit:main Feb 28, 2023
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues.
Projects
None yet
4 participants