Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: improve documentation for util.types.isNativeError() #46840

Merged
merged 12 commits into from
Mar 18, 2023
Prev Previous commit
Next Next commit
Update doc/api/util.md
Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
brodo and lpinca authored Mar 1, 2023
commit 46a1a982180570b81da24a70fc18f8aadfad1df6
2 changes: 1 addition & 1 deletion doc/api/util.md
Original file line number Diff line number Diff line change
@@ -2545,7 +2545,7 @@ console.log(util.types.isNativeError(myError)); // true
console.log(myError instanceof Error); // false
```

Conversely, `isNativeError()` returns `false` for all objects which where not
Conversely, `isNativeError()` returns `false` for all objects which were not
returned by the constructor of a native error. That includes values
which are `instanceof` native errors: