summaryrefslogtreecommitdiff
path: root/ext/fetch
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2023-10-10 12:01:01 +0900
committerGitHub <noreply@github.com>2023-10-10 05:01:01 +0200
commit2665ca103e64ae07d7c29d3400d0c37ec691ff50 (patch)
tree97babf0dbda5b2bbcf9b8e5a54bb0c4608419c98 /ext/fetch
parent84c9300aff08a9a1dcb214356f022315cc6736fb (diff)
fix(ext/web): writability of `ReadableStream.from` (#20836)
Fixes a WPT in `URL` and `ReadableStream`. Some unrelated WPT expectation changes due to WPT update.
Diffstat (limited to 'ext/fetch')
-rw-r--r--ext/fetch/20_headers.js2
-rw-r--r--ext/fetch/21_formdata.js2
-rw-r--r--ext/fetch/23_request.js2
-rw-r--r--ext/fetch/23_response.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/ext/fetch/20_headers.js b/ext/fetch/20_headers.js
index a004daa89..b99758de5 100644
--- a/ext/fetch/20_headers.js
+++ b/ext/fetch/20_headers.js
@@ -453,7 +453,7 @@ class Headers {
webidl.mixinPairIterable("Headers", Headers, _iterableHeaders, 0, 1);
-webidl.configurePrototype(Headers);
+webidl.configureInterface(Headers);
const HeadersPrototype = Headers.prototype;
webidl.converters["HeadersInit"] = (V, prefix, context, opts) => {
diff --git a/ext/fetch/21_formdata.js b/ext/fetch/21_formdata.js
index d905ec7c4..84d31898e 100644
--- a/ext/fetch/21_formdata.js
+++ b/ext/fetch/21_formdata.js
@@ -266,7 +266,7 @@ class FormData {
webidl.mixinPairIterable("FormData", FormData, entryList, "name", "value");
-webidl.configurePrototype(FormData);
+webidl.configureInterface(FormData);
const FormDataPrototype = FormData.prototype;
const ESCAPE_FILENAME_PATTERN = new SafeRegExp(/\r?\n|\r/g);
diff --git a/ext/fetch/23_request.js b/ext/fetch/23_request.js
index c09bd4880..a59bfb29d 100644
--- a/ext/fetch/23_request.js
+++ b/ext/fetch/23_request.js
@@ -497,7 +497,7 @@ class Request {
}
}
-webidl.configurePrototype(Request);
+webidl.configureInterface(Request);
const RequestPrototype = Request.prototype;
mixinBody(RequestPrototype, _body, _mimeType);
diff --git a/ext/fetch/23_response.js b/ext/fetch/23_response.js
index 73a90166d..83fad403a 100644
--- a/ext/fetch/23_response.js
+++ b/ext/fetch/23_response.js
@@ -426,7 +426,7 @@ class Response {
}
}
-webidl.configurePrototype(Response);
+webidl.configureInterface(Response);
ObjectDefineProperties(Response, {
json: { enumerable: true },
redirect: { enumerable: true },