summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/errors.ts
diff options
context:
space:
mode:
authorsnek <the@snek.dev>2024-05-21 15:50:59 -0700
committerGitHub <noreply@github.com>2024-05-21 15:50:59 -0700
commit8f2d17140468512372ccd3aeebb0d505c607b977 (patch)
treeb8a4e2d10a0cd3121d637e399b111b0c3dd8b32a /ext/node/polyfills/internal/errors.ts
parentdb82e8b557c9836481618a73cec7c014903ff256 (diff)
feat(node): buffer isUtf8/isAscii (#23928)
Fixes: https://github.com/denoland/deno/issues/23657 Implements `isUtf8` and `isAscii` as ops.
Diffstat (limited to 'ext/node/polyfills/internal/errors.ts')
-rw-r--r--ext/node/polyfills/internal/errors.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/errors.ts b/ext/node/polyfills/internal/errors.ts
index c3aeff8b2..a16656087 100644
--- a/ext/node/polyfills/internal/errors.ts
+++ b/ext/node/polyfills/internal/errors.ts
@@ -2564,6 +2564,12 @@ export class ERR_HTTP_SOCKET_ASSIGNED extends NodeError {
}
}
+export class ERR_INVALID_STATE extends NodeError {
+ constructor(message: string) {
+ super("ERR_INVALID_STATE", `Invalid state: ${message}`);
+ }
+}
+
interface UvExceptionContext {
syscall: string;
path?: string;
@@ -2824,6 +2830,7 @@ export default {
ERR_INVALID_RETURN_PROPERTY,
ERR_INVALID_RETURN_PROPERTY_VALUE,
ERR_INVALID_RETURN_VALUE,
+ ERR_INVALID_STATE,
ERR_INVALID_SYNC_FORK_INPUT,
ERR_INVALID_THIS,
ERR_INVALID_TUPLE,