Skip to content

native Promise broken in node 10.0 and 10.1 #455

@ljharb

Description

@ljharb

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions