fix: ignore linting rule for Deno.resources() (#4233)

This commit is contained in:
Asher Gomez 2024-01-25 11:06:54 +11:00 committed by GitHub
parent 845a6f8d97
commit 6a255d137b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,8 @@ export function cleanUp(device: GPUDevice) {
// TODO(lucacasonato): webgpu spec should add a explicit destroy method for
// adapters.
// 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]));