-
Notifications
You must be signed in to change notification settings - Fork 30k
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
class name not being inherited in an anonymous class since 12.16.0 #31830
Comments
With I am not sure if this is a bug fixed there. |
Could you check what spidermonkey and jsc do? |
Sure, good point:
This looks indeed like a bugfix in v8 (or at least an alignment on other engines) |
This is indeed a spec conformance thing: the // should be '', is 'Object' with older node versions
(class extends Object {}).name The V8 change that's responsible was reverted because of fuzzer issues and hasn't been relanded, AFAICT. We should probably close this because it's ultimately not a Node.js issue but cc @nodejs/v8 just in case. |
Thanks for the clarification @bnoordhuis ! |
What steps will reproduce the bug?
Running this script on
v12.16.0
will returnfalse
when before it was returningtrue
How often does it reproduce? Is there a required condition?
Always since
v12.16.0
What is the expected behavior?
I do not know which one is the expected behavior.
What do you see instead?
v12.15.0
:true
v12.16.0
:false
v13.8.0
:false
Additional information
The text was updated successfully, but these errors were encountered: