mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com> Co-authored-by: Georgijs Vilums <=> Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com> Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com> Co-authored-by: gvilums <gvilums@users.noreply.github.com>
17 lines
382 B
JavaScript
Generated
17 lines
382 B
JavaScript
Generated
const timer = setTimeout(() => {
|
|
process.exit(1);
|
|
}, 999_999_999);
|
|
if (timer.unref() !== timer) throw new Error("Expected timer.unref() === timer");
|
|
|
|
var ranCount = 0;
|
|
process.exitCode = 1;
|
|
const going2Refresh = setTimeout(() => {
|
|
if (ranCount < 1) going2Refresh.refresh();
|
|
ranCount++;
|
|
|
|
if (ranCount === 2) {
|
|
process.exitCode = 0;
|
|
console.log("SUCCESS");
|
|
}
|
|
}, 1);
|