1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

perf(ext/http): skip core.isProxy check for default ResponseInit (#15077)

This commit is contained in:
Divy Srivastava 2022-07-06 17:33:32 +05:30 committed by GitHub
parent 04061f9f39
commit 6046342a20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,7 +298,7 @@
* @param {BodyInit | null} body
* @param {ResponseInit} init
*/
constructor(body = null, init = {}) {
constructor(body = null, init = undefined) {
const prefix = "Failed to construct 'Response'";
body = webidl.converters["BodyInit_DOMString?"](body, {
prefix,