summaryrefslogtreecommitdiff
path: root/ext/fetch
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch')
-rw-r--r--ext/fetch/23_request.js2
-rw-r--r--ext/fetch/23_response.js4
-rw-r--r--ext/fetch/26_fetch.js4
3 files changed, 5 insertions, 5 deletions
diff --git a/ext/fetch/23_request.js b/ext/fetch/23_request.js
index 542bcb8bb..61c3b3f5d 100644
--- a/ext/fetch/23_request.js
+++ b/ext/fetch/23_request.js
@@ -466,7 +466,7 @@ class Request {
}
clone() {
- const prefix = "Failed to call 'Request.clone'";
+ const prefix = "Failed to execute 'Request.clone'";
webidl.assertBranded(this, RequestPrototype);
if (this[_body] && this[_body].unusable()) {
throw new TypeError("Body is unusable.");
diff --git a/ext/fetch/23_response.js b/ext/fetch/23_response.js
index fcf544d40..a3805a97d 100644
--- a/ext/fetch/23_response.js
+++ b/ext/fetch/23_response.js
@@ -256,7 +256,7 @@ class Response {
* @returns {Response}
*/
static redirect(url, status = 302) {
- const prefix = "Failed to call 'Response.redirect'";
+ const prefix = "Failed to execute 'Response.redirect'";
url = webidl.converters["USVString"](url, prefix, "Argument 1");
status = webidl.converters["unsigned short"](status, prefix, "Argument 2");
@@ -283,7 +283,7 @@ class Response {
* @returns {Response}
*/
static json(data = undefined, init = {}) {
- const prefix = "Failed to call 'Response.json'";
+ const prefix = "Failed to execute 'Response.json'";
data = webidl.converters.any(data);
init = webidl.converters["ResponseInit_fast"](init, prefix, "Argument 2");
diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js
index 9f90156c5..c4669e430 100644
--- a/ext/fetch/26_fetch.js
+++ b/ext/fetch/26_fetch.js
@@ -313,7 +313,7 @@ function fetch(input, init = {}) {
let opPromise = undefined;
// 1.
const result = new Promise((resolve, reject) => {
- const prefix = "Failed to call 'fetch'";
+ const prefix = "Failed to execute 'fetch'";
webidl.requiredArguments(arguments.length, 1, prefix);
// 2.
const requestObject = new Request(input, init);
@@ -425,7 +425,7 @@ function handleWasmStreaming(source, rid) {
try {
const res = webidl.converters["Response"](
source,
- "Failed to call 'WebAssembly.compileStreaming'",
+ "Failed to execute 'WebAssembly.compileStreaming'",
"Argument 1",
);