| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9f77692 commit 14ea8fc
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,7 +67,7 @@ const callbackFunction = util.callbackify(fn); | |||
| 67 | 67 | callbackFunction((err, ret) => { | |
| 68 | 68 | // When the Promise was rejected with `null` it is wrapped with an Error and | |
| 69 | 69 | // the original value is stored in `reason`. | |
| 70 | - err && err.hasOwnProperty('reason') && err.reason === null; // true | ||
| 70 | + err && Object.hasOwn(err, 'reason') && err.reason === null; // true | ||
| 71 | 71 | }); | |
| 72 | 72 | ``` | |
| 73 | 73 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments