Skip to content

console.log without arguments #36

Description

@silverwind

The current method signature in the spec says that the first parameter is required:

console.log(object [, object, ...])

Actual behaviour for console.log() without no parameters varies across implementations:

  • Node.js and Firefox log an empty line
  • Chrome and Safari log nothing

There is some usage of this pattern in Node.js modules, so I'm wondering if a change in the spec like this might be in order to change the signature of log and relatives to:

console.log([object][, object, ...])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions