0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00

cleanup(ext/fetch): drop redundant webidl converters in fetch() (#12167)

Since those inputs are passed to `new Request(...)` which applies webidl converters
This commit is contained in:
Aaron O'Mullan 2021-09-21 18:51:56 +02:00 committed by GitHub
parent 0aa6fefce7
commit 22a6f4166e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -412,15 +412,6 @@
const p = new Promise((resolve, reject) => {
const prefix = "Failed to call 'fetch'";
webidl.requiredArguments(arguments.length, 1, { prefix });
input = webidl.converters["RequestInfo"](input, {
prefix,
context: "Argument 1",
});
init = webidl.converters["RequestInit"](init, {
prefix,
context: "Argument 2",
});
// 2.
const requestObject = new Request(input, init);
// 3.