summaryrefslogtreecommitdiff
path: root/extensions/fetch
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/fetch')
-rw-r--r--extensions/fetch/21_formdata.js2
-rw-r--r--extensions/fetch/23_request.js6
-rw-r--r--extensions/fetch/23_response.js4
3 files changed, 6 insertions, 6 deletions
diff --git a/extensions/fetch/21_formdata.js b/extensions/fetch/21_formdata.js
index c50cf4cf7..379d5eca1 100644
--- a/extensions/fetch/21_formdata.js
+++ b/extensions/fetch/21_formdata.js
@@ -11,7 +11,7 @@
/// <reference lib="esnext" />
"use strict";
-((window) => {
+((_window) => {
const webidl = globalThis.__bootstrap.webidl;
const { Blob, File, _byteSequence } = globalThis.__bootstrap.file;
diff --git a/extensions/fetch/23_request.js b/extensions/fetch/23_request.js
index 603a37a5f..480b83182 100644
--- a/extensions/fetch/23_request.js
+++ b/extensions/fetch/23_request.js
@@ -16,7 +16,7 @@
const { HTTP_TOKEN_CODE_POINT_RE, byteUpperCase } = window.__bootstrap.infra;
const { URL } = window.__bootstrap.url;
const { guardFromHeaders } = window.__bootstrap.headers;
- const { InnerBody, mixinBody, extractBody } = window.__bootstrap.fetchBody;
+ const { mixinBody, extractBody } = window.__bootstrap.fetchBody;
const { getLocationHref } = window.__bootstrap.location;
const mimesniff = window.__bootstrap.mimesniff;
const {
@@ -38,7 +38,7 @@
* @property {() => string} url
* @property {() => string} currentUrl
* @property {[string, string][]} headerList
- * @property {null | InnerBody} body
+ * @property {null | typeof __window.bootstrap.fetchBody.InnerBody} body
* @property {"follow" | "error" | "manual"} redirectMode
* @property {number} redirectCount
* @property {string[]} urlList
@@ -61,7 +61,7 @@
* @param {string} method
* @param {string} url
* @param {[string, string][]} headerList
- * @param {InnerBody} body
+ * @param {typeof __window.bootstrap.fetchBody.InnerBody} body
* @returns
*/
function newInnerRequest(method, url, headerList = [], body = null) {
diff --git a/extensions/fetch/23_response.js b/extensions/fetch/23_response.js
index 6bd7a6487..6d9874c6a 100644
--- a/extensions/fetch/23_response.js
+++ b/extensions/fetch/23_response.js
@@ -15,7 +15,7 @@
((window) => {
const webidl = window.__bootstrap.webidl;
const { HTTP_TAB_OR_SPACE, regexMatcher } = window.__bootstrap.infra;
- const { InnerBody, extractBody, mixinBody } = window.__bootstrap.fetchBody;
+ const { extractBody, mixinBody } = window.__bootstrap.fetchBody;
const { getLocationHref } = window.__bootstrap.location;
const mimesniff = window.__bootstrap.mimesniff;
const { URL } = window.__bootstrap.url;
@@ -47,7 +47,7 @@
* @property {number} status
* @property {string} statusMessage
* @property {[string, string][]} headerList
- * @property {null | InnerBody} body
+ * @property {null | typeof __window.bootstrap.fetchBody.InnerBody} body
* @property {string} [error]
*/