Skip to content
Prev Previous commit
Update doc/api/util.md
Co-authored-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
brodo and jasnell authored Mar 2, 2023
commit 146c63237249d4efc3475860e3108f78a777ceb7
3 changes: 1 addition & 2 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -2524,8 +2524,7 @@ console.log(util.types.isNativeError(new TypeError())); // true
console.log(util.types.isNativeError(new RangeError())); // true
```

Subclasses of the native error types will use the return value of the native
error constructor as the new `this` and are therefore also native errors:
Subclasses of the native error types are also native errors:

```js
class MyError extends Error {}
Expand Down