decafjs / decaf

decaf core
MIT License
31 stars 7 forks source link

Console.log does not work with arrays #17

Open mm765 opened 8 years ago

mm765 commented 8 years ago

When trying console.log(string1, array, string2) only string1 is printed, the rest gets ignored - and in case i do this within a function that calls res.send() at then end i get an internal server error.

mschwartz commented 8 years ago

Use console.dir({ string1: string1, array: array, string2: string2 })

On Tuesday, February 2, 2016, mm765 notifications@github.com wrote:

When trying console.log(string1, array, string2) only string1 is printed, the rest gets ignored - and in case i do this within a function that calls res.send() at then end i get an internal server error.

— Reply to this email directly or view it on GitHub https://github.com/decafjs/decaf/issues/17.

mm765 commented 8 years ago

Ok, that works, thanks