| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bb346ea commit fd80430
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1337,7 +1337,7 @@ E('ERR_INVALID_RETURN_PROPERTY', (input, name, prop, value) => { | |||
| 1337 | 1337 | }, TypeError); | |
| 1338 | 1338 | E('ERR_INVALID_RETURN_PROPERTY_VALUE', (input, name, prop, value) => { | |
| 1339 | 1339 | let type; | |
| 1340 | - if (value && value.constructor && value.constructor.name) { | ||
| 1340 | + if (value?.constructor?.name) { | ||
| 1341 | 1341 | type = `instance of ${value.constructor.name}`; | |
| 1342 | 1342 | } else { | |
| 1343 | 1343 | type = `type ${typeof value}`; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments