From fc3a966a2d0be8fc76c384603bf18b55e0bbcf14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 13 Jun 2022 23:53:04 +0200 Subject: Deno.exit() is an alias to self.close() in worker contexts (#14826) This commit changes Deno.exit() to be an alias to self.close() in worker contexts, and the provided exit code becomes is ignored. --- cli/tests/integration/run_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests/integration/run_tests.rs') diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 7ea95c312..aed1fe0fe 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -903,10 +903,10 @@ itest!(set_exit_code_2 { exit_code: 42, }); -itest!(set_exit_code_in_worker { - args: "run --no-check --unstable --allow-read set_exit_code_in_worker.ts", +itest!(op_exit_op_set_exit_code_in_worker { + args: "run --no-check --unstable --allow-read op_exit_op_set_exit_code_in_worker.ts", + exit_code: 21, output: "empty.out", - exit_code: 42, }); itest!(deno_exit_tampering { -- cgit v1.2.3