util: change in console.log() output

  • Version: v10.8.0+
  • Platform: all?
  • Subsystem: util

In v10.8.0, #21624 shipped. This is seemingly a semver major change, despite having shipped in a semver minor release.

What's the change?

The result of:

console.log(1, "hi")

changed from:

1 'hi'

to:

1 hi

Here's an example in the repl:
image

This was surfaced to me by @euantorano from their issue in Nim, in which their tests failed because they were built to expect the old behavior: nim-lang/Nim#12182 (comment)