From dc16c996dd83164011f3931a8bb49f25624601af Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Thu, 29 Feb 2024 14:56:04 -0800 Subject: 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 --- ext/node/polyfills/internal/errors.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ext/node/polyfills/internal/errors.ts') 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; -- cgit v1.2.3