diff options
author | Igor Zinkovsky <igor@deno.com> | 2024-02-29 14:56:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 17:56:04 -0500 |
commit | dc16c996dd83164011f3931a8bb49f25624601af (patch) | |
tree | e85359f121bfa8034ee90af439c57a1d4faa7d8a /ext/node/polyfills/internal/errors.ts | |
parent | 627c49c9d8bd06aac374932582596c866650666d (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.ts | 9 |
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; |