diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-05-26 23:44:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-26 23:44:42 +0200 |
commit | d5d59bb794503416ced2c3ad6a2bb043f97ce3e5 (patch) | |
tree | e18b9655fedca63f068333fb1fa37297e3b0b3b7 /extensions/fetch/22_body.js | |
parent | e5beb800c94099852964d482a32a13f5c29ec147 (diff) |
fix(fetch): make prototype properties writable (#10769)
Diffstat (limited to 'extensions/fetch/22_body.js')
-rw-r--r-- | extensions/fetch/22_body.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/extensions/fetch/22_body.js b/extensions/fetch/22_body.js index 938e3023e..8c93e0fcf 100644 --- a/extensions/fetch/22_body.js +++ b/extensions/fetch/22_body.js @@ -147,6 +147,8 @@ return this[bodySymbol].stream; } }, + configurable: true, + enumerable: true, }, bodyUsed: { /** @@ -159,6 +161,8 @@ } return false; }, + configurable: true, + enumerable: true, }, arrayBuffer: { /** @returns {Promise<ArrayBuffer>} */ @@ -167,6 +171,9 @@ const body = await consumeBody(this); return packageData(body, "ArrayBuffer"); }, + writable: true, + configurable: true, + enumerable: true, }, blob: { /** @returns {Promise<Blob>} */ @@ -175,6 +182,9 @@ const body = await consumeBody(this); return packageData(body, "Blob", this[mimeTypeSymbol]); }, + writable: true, + configurable: true, + enumerable: true, }, formData: { /** @returns {Promise<FormData>} */ @@ -183,6 +193,9 @@ const body = await consumeBody(this); return packageData(body, "FormData", this[mimeTypeSymbol]); }, + writable: true, + configurable: true, + enumerable: true, }, json: { /** @returns {Promise<any>} */ @@ -191,6 +204,9 @@ const body = await consumeBody(this); return packageData(body, "JSON"); }, + writable: true, + configurable: true, + enumerable: true, }, text: { /** @returns {Promise<string>} */ @@ -199,6 +215,9 @@ const body = await consumeBody(this); return packageData(body, "text"); }, + writable: true, + configurable: true, + enumerable: true, }, }; return Object.defineProperties(prototype.prototype, mixin); |