Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

console.log() behavior is not compliant #343

Closed
@pfalcon

Description

@pfalcon

To reproduce, modify samples/HelloWorld.js (do we get an interactive mode?) to contain:

console.log(1)
console.log('foo', 'Hello, ZJS world!')

Run:

$ ./jslinux samples/HelloWorld.js 

foo

Issue: numeric argument is not printed. With multiple arguments, only 1st is silently printed.

For comparison:

$ nodejs samples/HelloWorld.js 
1
foo Hello, ZJS world!

Browser interactive console:

console.log(1)
console.log('foo', 'Hello, ZJS world!')
1
foo Hello, ZJS world!
undefined

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