summaryrefslogtreecommitdiff
path: root/ext/fetch/27_eventsource.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch/27_eventsource.js')
-rw-r--r--ext/fetch/27_eventsource.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fetch/27_eventsource.js b/ext/fetch/27_eventsource.js
index 1ab9d8009..685eb47c2 100644
--- a/ext/fetch/27_eventsource.js
+++ b/ext/fetch/27_eventsource.js
@@ -144,7 +144,7 @@ class EventSource extends EventTarget {
return this.#withCredentials;
}
- constructor(url, eventSourceInitDict = {}) {
+ constructor(url, eventSourceInitDict = { __proto__: null }) {
super();
this[webidl.brand] = webidl.brand;
const prefix = "Failed to construct 'EventSource'";