aboutsummaryrefslogtreecommitdiff
path: root/integration/scripts/browser.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-12-21 21:56:49 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-12-21 21:56:49 -0800
commit3f72da9d0bba201fbfbedea9a357e76e6c93593f (patch)
tree6a74b6ad23f985d26c0c3fdfa2984f95f92829ee /integration/scripts/browser.js
parent873e12c7c61a7e798489ce51ca32389a86f1e29f (diff)
downloadbun-3f72da9d0bba201fbfbedea9a357e76e6c93593f.tar.gz
bun-3f72da9d0bba201fbfbedea9a357e76e6c93593f.tar.zst
bun-3f72da9d0bba201fbfbedea9a357e76e6c93593f.zip
Use Node 14 compatible syntax
Diffstat (limited to 'integration/scripts/browser.js')
-rw-r--r--integration/scripts/browser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/integration/scripts/browser.js b/integration/scripts/browser.js
index f198dba7d..e4512714b 100644
--- a/integration/scripts/browser.js
+++ b/integration/scripts/browser.js
@@ -42,7 +42,7 @@ if (!USE_EXISTING_PROCESS) {
});
});
process.on("beforeExit", () => {
- bunProcess?.kill(0);
+ bunProcess && bunProcess.kill(0);
});
}
const isDebug = bunExec.endsWith("-debug");