I am surprised that the following code when input into the Chrome js console:
{} instanceof Object
results in this error message:
{}, in that context, is a block, not an object literal.
{}
You need change the context (e.g. by wrapping it in ( and )) to make it an object literal.
(
)
({}) instanceof Object;