Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aaeced9

Browse filesBrowse files
yorkiervagg
authored andcommitted
doc: fix the exception description
A value shouldn't be described as doing inherit from some class, more strictly, the value is an instance of the class `Error`. PR-URL: #3658 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Stephan Belanger <admin@stephenbelanger.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 098a311 commit aaeced9
Copy full SHA for aaeced9

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/errors.markdown‎

Copy file name to clipboardExpand all lines: doc/api/errors.markdown
+4-3Lines changed: 4 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,10 @@ of argument validation.
357357

358358
<!--type=misc-->
359359

360-
A JavaScript "exception" is a value that is thrown as a result of an invalid operation or
361-
as the target of a `throw` statement. While it is not required that these values inherit from
362-
`Error`, all exceptions thrown by Node.js or the JavaScript runtime *will* be instances of Error.
360+
A JavaScript exception is a value that is thrown as a result of an invalid operation or
361+
as the target of a `throw` statement. While it is not required that these values are instances of
362+
`Error` or classes which inherit from `Error`, all exceptions thrown by Node.js or the JavaScript
363+
runtime *will* be instances of Error.
363364

364365
Some exceptions are *unrecoverable* at the JavaScript layer. These exceptions will always bring
365366
down the process. These are usually failed `assert()` checks or `abort()` calls in the C++ layer.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.