mirror of
https://github.com/denoland/deno.git
synced 2025-07-23 13:15:16 +00:00
fix(core): Use primordials for methods (#18839)
I would like to get this change into Deno before merging https://github.com/denoland/deno_lint/pull/1152
This commit is contained in:
parent
94a148cdb6
commit
6728ad4203
17 changed files with 378 additions and 270 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue