0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 07:16:56 -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 cjihrig
parent 3eccfe71d0
commit 535d5c1d37
No known key found for this signature in database
GPG key ID: 7434390BDBE9B9C5

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,