Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.log not being .. compatible with browsers and nodejs #1510

Closed
mstoykov opened this issue Jun 23, 2020 · 1 comment
Closed

console.log not being .. compatible with browsers and nodejs #1510

mstoykov opened this issue Jun 23, 2020 · 1 comment
Labels
bug evaluation needed proposal needs to be validated or tested before fully implementing it in k6 good first issue lower prio

Comments

@mstoykov
Copy link
Collaborator

Environment

  • k6 version: v0.26.2

Expected Behavior

console.log("something", "other", "and", "third");

will print

something other and third

Actual Behavior

INFO[0000] something                                     0=other 1=and 2=third

Steps to Reproduce the Problem

  1. run console.log("something", "other", "and", "third");

This is not what either browsers or nodejs does, screenshot from firefox:
image

I also don't see any useful reason to do it this way, so I propose it's changed to concat the strings and maybe we can add the formatting support at a later stage.

@mstoykov mstoykov added bug good first issue lower prio evaluation needed proposal needs to be validated or tested before fully implementing it in k6 labels Jun 23, 2020
@na--
Copy link
Member

na-- commented Jun 23, 2020

I agree, though I think we should probably tackle #1146 at the same time, given that we'll be mucking with type assertions in there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug evaluation needed proposal needs to be validated or tested before fully implementing it in k6 good first issue lower prio
Projects
None yet
Development

No branches or pull requests

2 participants