From 53330adc5a3dfb672c3d92108e2f8a4c211b0809 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 25 Jan 2024 10:45:13 +1100 Subject: [PATCH 1/2] fix: ignore linting rule for `Deno.resources()` --- webgpu/_test_util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/webgpu/_test_util.ts b/webgpu/_test_util.ts index 28841d3f1b67..976f344d39ba 100644 --- a/webgpu/_test_util.ts +++ b/webgpu/_test_util.ts @@ -35,6 +35,7 @@ export function cleanUp(device: GPUDevice) { // TODO(lucacasonato): webgpu spec should add a explicit destroy method for // adapters. + // deno-lint-ignore no-deprecated-deno-api const resources = Object.keys(Deno.resources()); // @ts-ignore Until WebGPU resources cleanup is automatically handled. Deno[Deno.internal].core.close(Number(resources[resources.length - 1])); From de1ac8b1645d9034d3bae4bc0be2fbcb2ad67dcc Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 25 Jan 2024 10:50:38 +1100 Subject: [PATCH 2/2] fix --- webgpu/_test_util.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webgpu/_test_util.ts b/webgpu/_test_util.ts index 976f344d39ba..ab034d6df78f 100644 --- a/webgpu/_test_util.ts +++ b/webgpu/_test_util.ts @@ -35,7 +35,8 @@ export function cleanUp(device: GPUDevice) { // TODO(lucacasonato): webgpu spec should add a explicit destroy method for // adapters. - // deno-lint-ignore no-deprecated-deno-api + // deno-lint-ignore ban-untagged-ignore + // deno-lint-ignore const resources = Object.keys(Deno.resources()); // @ts-ignore Until WebGPU resources cleanup is automatically handled. Deno[Deno.internal].core.close(Number(resources[resources.length - 1]));