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:
parent
0aa6fefce7
commit
22a6f4166e
1 changed files with 0 additions and 9 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue