Skip to content

Parser error on "catch" #336

Closed
Closed
@scriby

Description

@scriby

I'm trying to run some code like this:

promise.then(function() {

}).catch(function() {

});

iotjs is throwing an error:

iotjs build/server.js
    .catch(function (err) {
     ^
ERROR: Ln 56, Col 6: Expected 'Identifier' token

It seems to not like the fact that the function name is "catch".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions