summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-05-27 19:25:30 +0900
committerGitHub <noreply@github.com>2021-05-27 19:25:30 +0900
commit56f6e57438c23f75e23e28f45ad0f76b94379d59 (patch)
tree1fde7d93536556de8400e92c1efb017dd9f0241a /extensions
parent7e4c387ae5f7186717c1def65e26dc9a774152ea (diff)
fix(ext/fetch): fix error message of Request constructor (#10772)
Diffstat (limited to 'extensions')
-rw-r--r--extensions/fetch/23_request.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/fetch/23_request.js b/extensions/fetch/23_request.js
index d8369b404..de1bdd211 100644
--- a/extensions/fetch/23_request.js
+++ b/extensions/fetch/23_request.js
@@ -273,7 +273,7 @@
((init.body !== undefined && init.body !== null) ||
inputBody !== null)
) {
- throw new TypeError("HEAD and GET requests may not have a body.");
+ throw new TypeError("Request with GET/HEAD method cannot have body.");
}
// 34.