| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
/cc @nodejs/testing |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM regardless of comment
Sorry, something went wrong.
|
Ping @nodejs/testing for reviews. |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
When using `util.inspect` as a callback, the array index (second argument) is picked up as the `showHidden` param, and the argument array (third argument) as the `depth` param. This fails with a seemingly unrelated error message when the argument array contains a `Symbol`-related property. PR-URL: nodejs#42917 Reviewed-By: Michaël Zasso <targos@protonmail.com>
When using `util.inspect` as a callback, the array index (second argument) is picked up as the `showHidden` param, and the argument array (third argument) as the `depth` param. This fails with a seemingly unrelated error message when the argument array contains a `Symbol`-related property. PR-URL: #42917 Reviewed-By: Michaël Zasso <targos@protonmail.com>
When using `util.inspect` as a callback, the array index (second argument) is picked up as the `showHidden` param, and the argument array (third argument) as the `depth` param. This fails with a seemingly unrelated error message when the argument array contains a `Symbol`-related property. PR-URL: #42917 Reviewed-By: Michaël Zasso <targos@protonmail.com>
When using `util.inspect` as a callback, the array index (second argument) is picked up as the `showHidden` param, and the argument array (third argument) as the `depth` param. This fails with a seemingly unrelated error message when the argument array contains a `Symbol`-related property. PR-URL: #42917 Reviewed-By: Michaël Zasso <targos@protonmail.com>
When using `util.inspect` as a callback, the array index (second argument) is picked up as the `showHidden` param, and the argument array (third argument) as the `depth` param. This fails with a seemingly unrelated error message when the argument array contains a `Symbol`-related property. PR-URL: nodejs/node#42917 Reviewed-By: Michaël Zasso <targos@protonmail.com>
| Back | FazBrowse Home | New Git URL |
When using util.inspect as a callback, the array index (second
argument) is picked up as the showHidden param, and the argument
array (third argument) as the depth param. This fails with a seemingly
unrelated error message when the argument array contains a
Symbol-related property.
Before this change, the following error was output:
node:internal/util/inspect:1014 if (recurseTimes > ctx.depth && ctx.depth !== null) { ^ TypeError: Cannot convert a Symbol value to a string at Array.join (<anonymous>) at Array.toString (<anonymous>) at formatRaw (node:internal/util/inspect:1014:20) at formatValue (node:internal/util/inspect:817:10) at inspect (node:internal/util/inspect:347:10) at Array.map (<anonymous>) at Object.mustNotCall [as get] (…) at Array.join (<anonymous>) at Array.toString (<anonymous>) at formatRaw (node:internal/util/inspect:1014:20) Node.js v19.0.0-preWith this change:
node:assert:170 throw err; ^ AssertionError [ERR_ASSERTION]: function should not have been called at … called with arguments: [Function: func] { customProperty: Symbol() }, 'customProperty', [Function: func] { customProperty: Symbol() } at Object.mustNotCall [as get] (…/test/common/index.js:516:12) at Object.<anonymous> (…) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Module._load (node:internal/modules/cjs/loader:827:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { generatedMessage: false, code: 'ERR_ASSERTION', actual: [Getter], expected: [Getter], operator: 'fail' } Node.js v19.0.0-pre