Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Coerce
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored Oct 18, 2024
1 parent f4158f8 commit 7bf3fc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.log("hello cruel world", process.env['exit_code']);
if (process.env['exit_code']) {
if (process.env['exit_code'] - 0) {
throw "dying";
}
process.exit(process.env['exit_code']);
2 changes: 1 addition & 1 deletion node/post.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.log("goodbye cruel world", process.env['post_exit_code']);
if (process.env['post_exit_code']) {
if (process.env['post_exit_code'] - 0) {
throw "dying";
}
process.exit(process.env['post_exit_code']);

0 comments on commit 7bf3fc8

Please sign in to comment.