Skip to content

util: harden util.inspect

This makes sure values without prototype will still be inspected properly and do not cause errors. It restores the original information if possible.

Besides that it fixes an issue with boxed symbols: extra keys were not visualized so far.

The main focus here is correctness and performance. I am not always happy with the code but it is not always easy to "fix" these things. I could not find a fix for e.g. regular expressions and if someone has an idea, please let me know!

Fixes #19511 (closed)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading