mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
nested
This commit is contained in:
@@ -6,7 +6,7 @@ process.on(
|
||||
if (err.message !== "oops") {
|
||||
throw err;
|
||||
}
|
||||
}, 2),
|
||||
}, 3),
|
||||
);
|
||||
|
||||
function checkNextTick(expected) {
|
||||
@@ -70,3 +70,37 @@ setImmediate(
|
||||
checkNextTick(7);
|
||||
}),
|
||||
);
|
||||
|
||||
setImmediate(
|
||||
mustCall(() => {
|
||||
counter++;
|
||||
checkNextTick(8);
|
||||
setImmediate(
|
||||
mustCall(() => {
|
||||
counter++;
|
||||
checkNextTick(11);
|
||||
}),
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
||||
setImmediate(
|
||||
mustCall(() => {
|
||||
counter++;
|
||||
checkNextTick(9);
|
||||
setImmediate(
|
||||
mustCall(() => {
|
||||
counter++;
|
||||
checkNextTick(12);
|
||||
throw new Error("oops");
|
||||
}),
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
||||
setImmediate(
|
||||
mustCall(() => {
|
||||
counter++;
|
||||
checkNextTick(10);
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user