Another variant of this is the expression `{...1}`. In Chrome,Safari and Node, it logs `{}`, while in Firefox, it logs a `SyntaxError`.
It seems the console is not a properly implemented JavaScript REPL, at least when it comes to object literals.
Bug 972530 Comment 27 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Another variant of this is the expression `{...1}`. In Chrome,Safari and Node it logs `{}`, in Firefox, it logs a `SyntaxError`.
It seems the console is not a properly implemented JavaScript REPL, at least when it comes to object literals.