summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/error_codes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/error_codes.ts')
-rw-r--r--ext/node/polyfills/internal/error_codes.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/error_codes.ts b/ext/node/polyfills/internal/error_codes.ts
new file mode 100644
index 000000000..6af88bb11
--- /dev/null
+++ b/ext/node/polyfills/internal/error_codes.ts
@@ -0,0 +1,7 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
+// Lazily initializes the error classes in this object.
+// This trick is necessary for avoiding circular dendencies between
+// `internal/errors` and other modules.
+// deno-lint-ignore no-explicit-any
+export const codes: Record<string, any> = {};