Skip to content

Commit ee8fc92

Browse files
committed
change comment wording
1 parent 7ebb33f commit ee8fc92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function createClientErrorConstructor (HttpError, name, code) {
137137
// capture a stack trace to the construction point
138138
Error.captureStackTrace(err, ClientError)
139139

140-
// adjust the [[Prototype]] if new.target is not ClientError
140+
// adjust the [[Prototype]] if new.target is not this class
141141
if (new.target && new.target !== ClientError) {
142142
setPrototypeOf(err, new.target.prototype)
143143
}
@@ -208,7 +208,7 @@ function createServerErrorConstructor (HttpError, name, code) {
208208
// capture a stack trace to the construction point
209209
Error.captureStackTrace(err, ServerError)
210210

211-
// adjust the [[Prototype]] if new.target is not ClientError
211+
// adjust the [[Prototype]] if new.target is not this class
212212
if (new.target && new.target !== ServerError) {
213213
setPrototypeOf(err, new.target.prototype)
214214
}

0 commit comments

Comments
 (0)