From 6dc8682b9acabea56fd69a25c28b6a8f95c2ce26 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 14 Sep 2023 14:08:59 -0400 Subject: feat: explicit resource management in TypeScript (#20506) This adds support for `using` and `await using` declarations in TypeScript only. We need to wait for v8 to support it for this to work in JS. --- cli/tests/integration/run_tests.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index be9bc554a..0a5e86b1f 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -4701,3 +4701,8 @@ console.log(returnsHi());"#, ") .assert_exit_code(1); } + +itest!(explicit_resource_management { + args: "run --quiet --check run/explicit_resource_management/main.ts", + output: "run/explicit_resource_management/main.out", +}); -- cgit v1.2.3