Skip to content

util: change in console.log() output  #29539

Closed
@bnb

Description

@bnb
  • 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    consoleIssues and PRs related to the console subsystem.utilIssues and PRs related to the built-in util module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions