Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 12027de

Browse files
committed
Remove ?? from bootstrap script
Support for `??` was added in Node.js 14. Users may try to run this script on versions before that, in which case we want to show an error prompting them to upgrade, not a syntax one.
1 parent c4d0719 commit 12027de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/miniflare/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Consider using a Node.js version manager such as https://volta.sh/ or https://gi
4747
],
4848
{ stdio: "inherit" }
4949
)
50-
.on("exit", (code) => process.exit(code ?? 0));
50+
.on("exit", (code) => process.exit(code === null ? 1 : code));
5151
}
5252

5353
void main();

0 commit comments

Comments
 (0)