-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
perf_hooks: align @@toStringTag
with other Web Performance implementations
#45157
perf_hooks: align @@toStringTag
with other Web Performance implementations
#45157
Conversation
This gets `Symbol.toStringTag` on Web Performance APIs to be aligned with the other runtime implementations. Signed-off-by: Daeyeon Jeong <[email protected]>
Can we refer to https://webidl.spec.whatwg.org/#ecmascript-binding?
|
Could you please explain, whats this code changes will helps to do? The get is syntax which will convert exactly same thing you defined using configuration. Then, why we need to modify the working code? If you think, this is a standard, i recommend to make a coding standard guidlines first. Please have a look here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get |
If you are really thinks this is a standard, worthy, and we must follow that, please create a ticket. I can convert another instance of getters and move to define props including my open PR #45114 |
Yes, I think that we can meet the specification more with this way. Please take a look at the WPTs below. https://github.com/web-platform-tests/wpt/search?l=JavaScript&q=toStringTag |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Make sense now. This could be a valid reason to use Making changes accordingly. |
Signed-off-by: Daeyeon Jeong <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Daeyeon Jeong <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
Landed in 631bdb4 |
This gets `Symbol.toStringTag` on Web Performance APIs to be aligned with the other runtime implementations. Signed-off-by: Daeyeon Jeong <[email protected]> PR-URL: #45157 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Feng Yu <[email protected]> Reviewed-By: James M Snell <[email protected]>
This gets `Symbol.toStringTag` on Web Performance APIs to be aligned with the other runtime implementations. Signed-off-by: Daeyeon Jeong <[email protected]> PR-URL: #45157 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Feng Yu <[email protected]> Reviewed-By: James M Snell <[email protected]>
@daeyeon this doesn't land cleanly on v18.x. Do you mind making a backport PR? |
This gets
Symbol.toStringTag
on Web Performance APIs to be alignedwith the other runtime implementations. (Tested on Chromium, Firefox, and Safari)
Signed-off-by: Daeyeon Jeong [email protected]