diff options
Diffstat (limited to 'ext/fetch/23_response.js')
-rw-r--r-- | ext/fetch/23_response.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/fetch/23_response.js b/ext/fetch/23_response.js index 13710881f..29a37ceca 100644 --- a/ext/fetch/23_response.js +++ b/ext/fetch/23_response.js @@ -152,10 +152,6 @@ } class Response { - /** @type {InnerResponse} */ - [_response]; - /** @type {Headers} */ - [_headers]; get [_mimeType]() { let charset = null; let essence = null; @@ -270,7 +266,9 @@ this[webidl.brand] = webidl.brand; const response = newInnerResponse(init.status, init.statusText); + /** @type {InnerResponse} */ this[_response] = response; + /** @type {Headers} */ this[_headers] = headersFromHeaderList(response.headerList, "response"); if (init.headers !== undefined) { fillHeaders(this[_headers], init.headers); |