diff options
Diffstat (limited to 'ext/fetch/23_request.js')
-rw-r--r-- | ext/fetch/23_request.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/fetch/23_request.js b/ext/fetch/23_request.js index d3132dc62..4c46ebe75 100644 --- a/ext/fetch/23_request.js +++ b/ext/fetch/23_request.js @@ -37,6 +37,7 @@ const { ObjectKeys, ObjectPrototypeIsPrototypeOf, RegExpPrototypeTest, + StringPrototypeStartsWith, Symbol, SymbolFor, TypeError, @@ -90,7 +91,11 @@ function processUrlList(urlList, urlListProcessed) { */ function newInnerRequest(method, url, headerList, body, maybeBlob) { let blobUrlEntry = null; - if (maybeBlob && typeof url === "string" && url.startsWith("blob:")) { + if ( + maybeBlob && + typeof url === "string" && + StringPrototypeStartsWith(url, "blob:") + ) { blobUrlEntry = blobFromObjectUrl(url); } return { |