summaryrefslogtreecommitdiff
path: root/ext/fetch/23_response.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch/23_response.js')
-rw-r--r--ext/fetch/23_response.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fetch/23_response.js b/ext/fetch/23_response.js
index a3805a97d..94fc69a98 100644
--- a/ext/fetch/23_response.js
+++ b/ext/fetch/23_response.js
@@ -282,7 +282,7 @@ class Response {
* @param {ResponseInit} init
* @returns {Response}
*/
- static json(data = undefined, init = {}) {
+ static json(data = undefined, init = { __proto__: null }) {
const prefix = "Failed to execute 'Response.json'";
data = webidl.converters.any(data);
init = webidl.converters["ResponseInit_fast"](init, prefix, "Argument 2");