diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-09-27 10:51:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 10:51:32 +0200 |
commit | 8aba521e18e1e11b84171693253ef50ec3fd3c71 (patch) | |
tree | 5a7a23ff44ce9dc5e0628dcdbe7f5e305decd63a /ext/fetch/23_response.js | |
parent | 34a15545c979299b00c013e6634dfc3a79011b92 (diff) |
perf(fetch/Response): avoid class fields (#12237)
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); |