summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/errors.ts
diff options
context:
space:
mode:
authorIgor Zinkovsky <igor@deno.com>2024-02-29 14:56:04 -0800
committerGitHub <noreply@github.com>2024-02-29 17:56:04 -0500
commitdc16c996dd83164011f3931a8bb49f25624601af (patch)
treee85359f121bfa8034ee90af439c57a1d4faa7d8a /ext/node/polyfills/internal/errors.ts
parent627c49c9d8bd06aac374932582596c866650666d (diff)
fix(ext/node) add node http methods (#22630)
fixes #22627 This PR fixes a node compat issue that is preventing `serverless-http` and `serverless-express` npm modules from working with Deno. These modules are useful for running apps on AWS Lambda (and other serverless infra). --------- Signed-off-by: Igor Zinkovsky <igor@deno.com>
Diffstat (limited to 'ext/node/polyfills/internal/errors.ts')
-rw-r--r--ext/node/polyfills/internal/errors.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/errors.ts b/ext/node/polyfills/internal/errors.ts
index 38573e150..5d5946d46 100644
--- a/ext/node/polyfills/internal/errors.ts
+++ b/ext/node/polyfills/internal/errors.ts
@@ -2543,6 +2543,15 @@ export class ERR_OS_NO_HOMEDIR extends NodeSystemError {
}
}
+export class ERR_HTTP_SOCKET_ASSIGNED extends NodeError {
+ constructor() {
+ super(
+ "ERR_HTTP_SOCKET_ASSIGNED",
+ `ServerResponse has an already assigned socket`,
+ );
+ }
+}
+
interface UvExceptionContext {
syscall: string;
path?: string;