From 2531204a3476b0f49bd4ecec68a94efb2908412a Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 21 Aug 2024 20:33:52 -0700 Subject: fix(ext/node): register `node:wasi` built-in (#25134) Fixes https://github.com/denoland/deno/issues/23531 --- tests/unit_node/wasi_test.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/unit_node/wasi_test.ts (limited to 'tests/unit_node') diff --git a/tests/unit_node/wasi_test.ts b/tests/unit_node/wasi_test.ts new file mode 100644 index 000000000..6af2d4b1d --- /dev/null +++ b/tests/unit_node/wasi_test.ts @@ -0,0 +1,7 @@ +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +import wasi from "node:wasi"; +import { assertThrows } from "@std/assert"; + +Deno.test("[node/wasi] - WASI should throw (not implemented)", () => { + assertThrows(() => new wasi.WASI()); +}); -- cgit v1.2.3