-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
Bug related to using Object.__proto__
within async call?
#54930
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
Comments
I also posted this to Chromium v8 tracker -- sorry I'm not sure exactly where is the correct place to report this: https://partnerissuetracker.corp.google.com/issues/366268202 |
👋 did you happen to report it in an internal tracker? It doesn’t seem like that is accessible from non-google.com emails. |
Repro: console.log("BEFORE");
await new Promise((resolve, reject) =>
resolve({ __proto__: new Proxy({}, { get: () => () => {} }) })
);
console.log("AFTER"); @nodejs/loaders when running the file using typeless module detection, the program silently exists. However, when running the file from a
That behavior is being tracked at #54931 The issue isn't with the await { then() {} }; This won't execute successfully. The proxy is returning a |
Chromium displays the same behavior: await { then() {} }; console.log('after');
|
I think the issue is that you've made an object whose [[Prototype]] is a Proxy (not |
From what I can tell, the proxy prototype is working as expected, it just crashes when it tries to get the |
Closing as Working as expected, let me know if I missed something. |
Version
v22.8.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Using
Object.__proto__
inside async call.See minimal reproduction repo: https://github.com./tizmagik/async-object-proto-repro
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
Should behave similarly to sync call
What do you see instead?
Async thread appears to exit early or crash, although no visible output
Additional information
https://github.com./tizmagik/async-object-proto-repro
The text was updated successfully, but these errors were encountered: