Skip to content

Unexpected token error for rest parameter #5411

Description

@pranaydutta89

i am trying to use es6 rest parameters
class mediasController extends lib.baseClasses.apiControllerAsyncBase().apiControllerAsync { constructor(...args) { super(...args); this.xyz = {}; }

but when i run the code it gives me error as "unexpected token .." ,i am using node version 4.2.6, please provide me with the solution of the same.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions