Skip to content

Commit

Permalink
lib: fix typo in internal/errors.js
Browse files Browse the repository at this point in the history
PR-URL: #36426
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
RaisinTen authored and danielleadams committed Dec 7, 2020
1 parent 197ba21 commit f73a0a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ function uvException(ctx) {
message += ` -> '${dest}'`;
}

// Reducing the limit improves the performance significantly. We do not loose
// Reducing the limit improves the performance significantly. We do not lose
// the stack frames due to the `captureStackTrace()` function that is called
// later.
const tmpLimit = Error.stackTraceLimit;
Expand Down Expand Up @@ -489,7 +489,7 @@ function uvExceptionWithHostPort(err, syscall, address, port) {
details = ` ${address}`;
}

// Reducing the limit improves the performance significantly. We do not loose
// Reducing the limit improves the performance significantly. We do not lose
// the stack frames due to the `captureStackTrace()` function that is called
// later.
const tmpLimit = Error.stackTraceLimit;
Expand Down Expand Up @@ -563,7 +563,7 @@ function exceptionWithHostPort(err, syscall, address, port, additional) {
details += ` - Local (${additional})`;
}

// Reducing the limit improves the performance significantly. We do not loose
// Reducing the limit improves the performance significantly. We do not lose
// the stack frames due to the `captureStackTrace()` function that is called
// later.
const tmpLimit = Error.stackTraceLimit;
Expand Down Expand Up @@ -608,7 +608,7 @@ function dnsException(code, syscall, hostname) {
}
}
const message = `${syscall} ${code}${hostname ? ` ${hostname}` : ''}`;
// Reducing the limit improves the performance significantly. We do not loose
// Reducing the limit improves the performance significantly. We do not lose
// the stack frames due to the `captureStackTrace()` function that is called
// later.
const tmpLimit = Error.stackTraceLimit;
Expand Down

0 comments on commit f73a0a8

Please sign in to comment.