summaryrefslogtreecommitdiff
path: root/runtime/js/01_errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/01_errors.js')
-rw-r--r--runtime/js/01_errors.js9
1 files changed, 1 insertions, 8 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);