Skip to content

Commit

Permalink
doc: simplify and clarify ReferenceError material in errors.md
Browse files Browse the repository at this point in the history
"should always be considered" -> "indicate"

PR-URL: #34151
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Christian Clauss <[email protected]>
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Andrey Pechkurov <[email protected]>
  • Loading branch information
Trott authored and MylesBorins committed Jul 16, 2020
1 parent af9e6f6 commit e33c09c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,7 @@ doesNotExist;
```

Unless an application is dynamically generating and running code,
`ReferenceError` instances should always be considered a bug in the code
or its dependencies.
`ReferenceError` instances indicate a bug in the code or its dependencies.

## Class: `SyntaxError`

Expand Down

0 comments on commit e33c09c

Please sign in to comment.