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
81
81
// https://fetch.spec.whatwg.org/#request-class
82
82
class Request {
83
83
// https://fetch.spec.whatwg.org/#dom-request
84
- constructor ( input , init = { } ) {
84
+ constructor ( input , init = undefined ) {
85
85
if ( input === kConstruct ) {
86
86
return
87
87
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class Response {
41
41
}
42
42
43
43
// https://fetch.spec.whatwg.org/#dom-response-json
44
- static json ( data , init = { } ) {
44
+ static json ( data , init = undefined ) {
45
45
webidl . argumentLengthCheck ( arguments , 1 , 'Response.json' )
46
46
47
47
if ( init !== null ) {
@@ -108,7 +108,7 @@ class Response {
108
108
}
109
109
110
110
// https://fetch.spec.whatwg.org/#dom-response
111
- constructor ( body = null , init = { } ) {
111
+ constructor ( body = null , init = undefined ) {
112
112
if ( body === kConstruct ) {
113
113
return
114
114
}
You can’t perform that action at this time.
0 commit comments