Skip to content

Objects log incorrectly #1

@Mat-thieu

Description

@Mat-thieu

Whenever I log an object all I get is

[object Object]

I fixed this myself by adding this code on line 30

for (var i = arguments.length - 1; i >= 0; i--) {
    if(typeof arguments[i] == 'object' && !Array.isArray(arguments[i]))
        arguments[i] = JSON.stringify(arguments[i]).replace(/"/g, "").replace(/,/g, ', ').replace(/:/g, ': ');
};

This is obviously not the best way to fix this issue, but the use of JSON.stringify might save you some headaches.

This happens in chrome(46.0.2490).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions