| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1349,17 +1349,11 @@ E('ERR_INVALID_REPL_EVAL_CONFIG', | |||
| 1349 | 1349 | E('ERR_INVALID_REPL_INPUT', '%s', TypeError); | |
| 1350 | 1350 | E('ERR_INVALID_RETURN_PROPERTY', (input, name, prop, value) => { | |
| 1351 | 1351 | return `Expected a valid ${input} to be returned for the "${prop}" from the` + | |
| 1352 | - ` "${name}" function but got ${value}.`; | ||
| 1352 | + ` "${name}" function but got ${determineSpecificType(value)}.`; | ||
| 1353 | 1353 | }, TypeError); | |
| 1354 | 1354 | E('ERR_INVALID_RETURN_PROPERTY_VALUE', (input, name, prop, value) => { | |
| 1355 | - let type; | ||
| 1356 | - if (value?.constructor?.name) { | ||
| 1357 | - type = `instance of ${value.constructor.name}`; | ||
| 1358 | - } else { | ||
| 1359 | - type = `type ${typeof value}`; | ||
| 1360 | - } | ||
| 1361 | 1355 | return `Expected ${input} to be returned for the "${prop}" from the` + | |
| 1362 | - ` "${name}" function but got ${type}.`; | ||
| 1356 | + ` "${name}" function but got ${determineSpecificType(value)}.`; | ||
| 1363 | 1357 | }, TypeError); | |
| 1364 | 1358 | E('ERR_INVALID_RETURN_VALUE', (input, name, value) => { | |
| 1365 | 1359 | const type = determineSpecificType(value); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments