Running:
async function x() { await x(); } (async function () { try { await x(); } catch (e) { console.log(e); } })()
Leads to an uncaught promise:
; node t.js
(node:434) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): RangeError: Maximum call stack size exceeded
Running the same thing with babel transpiling to bluebird coroutines works fine. I guess there are two questions?
- is this a bug?
- if it is a bug, should I be filing it against node or v8?
Running:
Leads to an uncaught promise:
Running the same thing with babel transpiling to bluebird coroutines works fine. I guess there are two questions?