-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
events: fix event-target enumerable keys #33616
Conversation
Verified with Anne that this is the correct behavior - here is the relevant reference https://heycam.github.io/webidl/#define-the-unforgeable-regular-attributes |
|
||
{ | ||
const ev = new Event('foo'); | ||
deepStrictEqual(Object.keys(ev), ['isTrusted']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this include a test that the value cannot be changed? I assume that's likely covered in the WPT tho?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Experimental fixups to an unreleased feature... 👍 to fast track |
Landed in 2d071e7 |
PR-URL: nodejs#33616 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #33616 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #33616 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Another quick one as I look for deltas before adding the WPTs.
TIL about https://heycam.github.io/webidl/#LegacyUnforgeable
Also I asked about this behavior on #whatwg to make sure I got it right (Edge behaves differently from Chrome and Firefox here)
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes