From 445e05a39d005eab6f7d2f1f67a7ae2d7c85b1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 24 Jul 2024 01:11:38 +0100 Subject: Reland "fix: CFunctionInfo and CTypeInfo leaks (#24634)" (#24692) Reverted in https://github.com/denoland/deno/commit/95847f4e9443ad8c8e0504c9fdd1d7f8eb4e588f. --- runtime/js/01_errors.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'runtime/js/01_errors.js') diff --git a/runtime/js/01_errors.js b/runtime/js/01_errors.js index ff2c619f4..bfcb540e2 100644 --- a/runtime/js/01_errors.js +++ b/runtime/js/01_errors.js @@ -1,7 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import { core, primordials } from "ext:core/mod.js"; -const { BadResource, Interrupted } = core; +const { BadResource, Interrupted, PermissionDenied } = core; const { Error } = primordials; class NotFound extends Error { @@ -11,13 +11,6 @@ class NotFound extends Error { } } -class PermissionDenied extends Error { - constructor(msg) { - super(msg); - this.name = "PermissionDenied"; - } -} - class ConnectionRefused extends Error { constructor(msg) { super(msg); -- cgit v1.2.3