Skip to content

{}.toString() now throws SyntaxError in browser, what happened? #3323

@hermit99

Description

@hermit99

Regarding 1-js/09-classes/06-instanceof, now Edge/Chrome browsers don't like this syntax anymore, and throws Uncaught SyntaxError: Unexpected token '.'

Now we have to write ({}).toString(). In Node.js {}.toString() still works. Was there a change in the spec recently or it's actually a bug in brower?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions