Skip to content

console.log without arguments #36

@silverwind

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, ...])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions