From ffc0722e6b948207dda16a1a5f5f7076d139903c Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Fri, 11 Oct 2024 00:28:34 +0200 Subject: [PATCH] fix: data-url set extractValue of collectAnHTTPQuotedString by default to false --- lib/web/fetch/data-url.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/web/fetch/data-url.js b/lib/web/fetch/data-url.js index 2996feca92a..c77747fc0d7 100644 --- a/lib/web/fetch/data-url.js +++ b/lib/web/fetch/data-url.js @@ -471,9 +471,9 @@ function forgivingBase64 (data) { /** * @param {string} input * @param {{ position: number }} position - * @param {boolean?} extractValue + * @param {boolean} [extractValue=false] */ -function collectAnHTTPQuotedString (input, position, extractValue) { +function collectAnHTTPQuotedString (input, position, extractValue = false) { // 1. Let positionStart be position. const positionStart = position.position