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

native Promise broken in node 10.0 and 10.1 #455

Open
ljharb opened this Issue Mar 8, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@ljharb
Copy link
Collaborator

ljharb commented Mar 8, 2019

in node < 10, or 10.2+, the following code in the REPL shows a rejected promise. in node 10.0 and 10.1, however, the promise is forever pending.

var r, p = new Promise(y => { r = y; }); r({ then() { throw 42; } }); p;

@ljharb ljharb changed the title Promise broken in node 10.0 and 10.1 native Promise broken in node 10.0 and 10.1 Mar 8, 2019

@ljharb

This comment has been minimized.

Copy link
Collaborator Author

ljharb commented Mar 9, 2019

v8/v8@40060be is the bug fix; there may not be any way to synchronously detect it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.