This commit is contained in:
Dylan Conway
2025-05-01 14:21:40 -07:00
parent 44d2da76ba
commit e3497e84c6

View File

@@ -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);
}),
);