From e389917535e8e7ef13920a96f9c9c1e1ec2b2c55 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Wed, 15 May 2024 00:42:43 +0200 Subject: fix(node): stub `AsyncResource.emitDestroy()` (#23802) Fixes https://github.com/denoland/deno/issues/23397 --- ext/node/polyfills/async_hooks.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/node/polyfills/async_hooks.ts') diff --git a/ext/node/polyfills/async_hooks.ts b/ext/node/polyfills/async_hooks.ts index e8960c4dc..f94b8d2c6 100644 --- a/ext/node/polyfills/async_hooks.ts +++ b/ext/node/polyfills/async_hooks.ts @@ -207,6 +207,8 @@ export class AsyncResource { } } + emitDestroy() {} + bind(fn: (...args: unknown[]) => unknown, thisArg = this) { validateFunction(fn, "fn"); const frame = AsyncContextFrame.current(); -- cgit v1.2.3