From f0a3d206422af3177e0f36ed22802c1ccc6f7654 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Fri, 6 Sep 2024 19:52:59 +0900 Subject: fix(runtime): use more null proto objects again (#25040) proceed with #23921 This PR is a preparation for https://github.com/denoland/deno_lint/pull/1307 --------- Signed-off-by: Kenta Moriuchi Co-authored-by: Luca Casonato --- ext/node/polyfills/_util/async.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/node/polyfills/_util/async.ts') diff --git a/ext/node/polyfills/_util/async.ts b/ext/node/polyfills/_util/async.ts index cc116412c..0cacccacc 100644 --- a/ext/node/polyfills/_util/async.ts +++ b/ext/node/polyfills/_util/async.ts @@ -13,7 +13,7 @@ import { clearTimeout, setTimeout } from "ext:deno_web/02_timers.js"; /** Resolve a Promise after a given amount of milliseconds. */ export function delay( ms: number, - options: { signal?: AbortSignal } = {}, + options: { signal?: AbortSignal } = { __proto__: null }, ): Promise { const { signal } = options; if (signal?.aborted) { -- cgit v1.2.3