summaryrefslogtreecommitdiff
path: root/ext/http/01_http.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r--ext/http/01_http.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js
index e88684858..9302bd8a0 100644
--- a/ext/http/01_http.js
+++ b/ext/http/01_http.js
@@ -207,7 +207,7 @@ function createRespondWith(
resp = await resp;
if (!(ObjectPrototypeIsPrototypeOf(ResponsePrototype, resp))) {
throw new TypeError(
- "First argument to respondWith must be a Response or a promise resolving to a Response.",
+ "First argument to 'respondWith' must be a Response or a promise resolving to a Response",
);
}
@@ -220,7 +220,7 @@ function createRespondWith(
let respBody = null;
if (innerResp.body !== null) {
if (innerResp.body.unusable()) {
- throw new TypeError("Body is unusable.");
+ throw new TypeError("Body is unusable");
}
if (
ObjectPrototypeIsPrototypeOf(
@@ -295,7 +295,7 @@ function createRespondWith(
let reader;
if (resourceBacking) {
if (respBody.locked) {
- throw new TypeError("ReadableStream is locked.");
+ throw new TypeError("ReadableStream is locked");
}
reader = respBody.getReader(); // Acquire JS lock.
try {