When I type simple objects to Chrome JavaScript Console, I get an output like this:
>true true >1/3 0.3333333333333333
And so on.
Because { a: 1, b: 2 } is not a valid expression to execute. JavaScript looks it like a block of code since it starts and ends to curly braces.
{ a: 1, b: 2 }
If you try ({ a: 1, b: 2 }), it will work.
({ a: 1, b: 2 })