File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ let patchMethodWarning = false
8181// https://fetch.spec.whatwg.org/#request-class
8282class Request {
8383 // https://fetch.spec.whatwg.org/#dom-request
84- constructor ( input , init = { } ) {
84+ constructor ( input , init = undefined ) {
8585 if ( input === kConstruct ) {
8686 return
8787 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class Response {
4141 }
4242
4343 // https://fetch.spec.whatwg.org/#dom-response-json
44- static json ( data , init = { } ) {
44+ static json ( data , init = undefined ) {
4545 webidl . argumentLengthCheck ( arguments , 1 , 'Response.json' )
4646
4747 if ( init !== null ) {
@@ -108,7 +108,7 @@ class Response {
108108 }
109109
110110 // https://fetch.spec.whatwg.org/#dom-response
111- constructor ( body = null , init = { } ) {
111+ constructor ( body = null , init = undefined ) {
112112 if ( body === kConstruct ) {
113113 return
114114 }
You can’t perform that action at this time.
0 commit comments