diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2024-03-10 11:23:14 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-10 02:23:14 +0000 |
commit | 84db80642a134cf0bd17accbc5c12f37e09e632e (patch) | |
tree | 2e19301d7e4759bf392bab369cc41f8571272796 /ext/fetch/23_response.js | |
parent | f8543a9fd8d47753a607dfc04c121c49d1ac4294 (diff) |
chore: replace 'call' to 'execute' in error messages (#22579)
Since both "call" and "execute" were used in error messages, I replaced them with "execute," which is more used.
Diffstat (limited to 'ext/fetch/23_response.js')
-rw-r--r-- | ext/fetch/23_response.js | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |