mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Before this commit they were instantiated lazily but that fails when the first call is under stack overflow conditions. PR-URL: https://github.com/nodejs/node/pull/14791 Fixes: https://github.com/nodejs/help#778 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
19 lines
199 B
JavaScript
19 lines
199 B
JavaScript
// Flags: --stack_trace_limit=3
|
|
|
|
'use strict';
|
|
require('../common');
|
|
|
|
async function f() {
|
|
await f();
|
|
}
|
|
|
|
async function g() {
|
|
try {
|
|
await f();
|
|
} catch (e) {
|
|
console.log(e);
|
|
}
|
|
}
|
|
|
|
g();
|