From bda937938550a0969588a6878d2fb6d72c17b22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 17 Sep 2020 18:09:50 +0200 Subject: refactor: move op_resources and op_close to deno_core (#7539) Moves op_close and op_resources to deno_core::ops and exports them. Adds serde dependency to deno_core and reexports it. Moves JS implementation of those ops to Deno.core and reexports them in Deno. --- cli/tests/unit/resources_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/resources_test.ts b/cli/tests/unit/resources_test.ts index 5742fd6a0..4e4288ff9 100644 --- a/cli/tests/unit/resources_test.ts +++ b/cli/tests/unit/resources_test.ts @@ -4,7 +4,7 @@ import { unitTest, assertEquals, assert, assertThrows } from "./test_util.ts"; unitTest(function resourcesCloseBadArgs(): void { assertThrows(() => { Deno.close((null as unknown) as number); - }, Deno.errors.InvalidData); + }, TypeError); }); unitTest(function resourcesStdio(): void { -- cgit v1.2.3