summaryrefslogtreecommitdiff
path: root/cli/tests/integration
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-09-14 14:08:59 -0400
committerGitHub <noreply@github.com>2023-09-14 18:08:59 +0000
commit6dc8682b9acabea56fd69a25c28b6a8f95c2ce26 (patch)
tree944784e77b1008bd2bc3e2673927ddf6f896c5c6 /cli/tests/integration
parente66d3c2c2e287879a757e12943a6d240981cb9e8 (diff)
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.
Diffstat (limited to 'cli/tests/integration')
-rw-r--r--cli/tests/integration/run_tests.rs5
1 files changed, 5 insertions, 0 deletions
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",
+});