diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-07-24 01:11:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 02:11:38 +0200 |
commit | 445e05a39d005eab6f7d2f1f67a7ae2d7c85b1b3 (patch) | |
tree | 06cba5eccfe8777bda7edf17834bf30a973bf099 /runtime/js | |
parent | 9114a2df69da9318c4e10887553b7daf77b0fa16 (diff) |
Reland "fix: CFunctionInfo and CTypeInfo leaks (#24634)" (#24692)
Reverted in
https://github.com/denoland/deno/commit/95847f4e9443ad8c8e0504c9fdd1d7f8eb4e588f.
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/01_errors.js | 9 | ||||
-rw-r--r-- | runtime/js/99_main.js | 1 |
2 files changed, 1 insertions, 9 deletions
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); diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 44dc3c54d..e4d26b5de 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -387,7 +387,6 @@ function formatException(error) { } core.registerErrorClass("NotFound", errors.NotFound); -core.registerErrorClass("PermissionDenied", errors.PermissionDenied); core.registerErrorClass("ConnectionRefused", errors.ConnectionRefused); core.registerErrorClass("ConnectionReset", errors.ConnectionReset); core.registerErrorClass("ConnectionAborted", errors.ConnectionAborted); |