diff options
Diffstat (limited to 'ext/node/polyfills/_util')
-rw-r--r-- | ext/node/polyfills/_util/async.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_util/std_testing_diff.ts | 9 |
2 files changed, 7 insertions, 4 deletions
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<void> { const { signal } = options; if (signal?.aborted) { diff --git a/ext/node/polyfills/_util/std_testing_diff.ts b/ext/node/polyfills/_util/std_testing_diff.ts index 74e396b0c..5155fd242 100644 --- a/ext/node/polyfills/_util/std_testing_diff.ts +++ b/ext/node/polyfills/_util/std_testing_diff.ts @@ -325,7 +325,10 @@ export function diffstr(A: string, B: string) { ); } - function tokenize(string: string, { wordDiff = false } = {}): string[] { + function tokenize( + string: string, + { wordDiff = false } = { __proto__: null }, + ): string[] { if (wordDiff) { // Split string on whitespace symbols const tokens = StringPrototypeSplit(string, WHITESPACE_SYMBOL_PATTERN); @@ -450,7 +453,7 @@ export function diffstr(A: string, B: string) { */ function createColor( diffType: DiffType, - { background = false } = {}, + { background = false } = { __proto__: null }, ): (s: string) => string { // TODO(@littledivy): Remove this when we can detect // true color terminals. @@ -484,7 +487,7 @@ function createSign(diffType: DiffType): string { export function buildMessage( diffResult: ReadonlyArray<DiffResult<string>>, - { stringDiff = false } = {}, + { stringDiff = false } = { __proto__: null }, ): string[] { const messages: string[] = [], diffMessages: string[] = []; ArrayPrototypePush(messages, ""); |