You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Rest parameters are behind a flag (--es_staging) in node v4 and v5. With them being behind a flag, there could be things that do not work properly. They should be available in the next major version of node (v6). Thanks!
Activity
evanlucas commentedon Feb 24, 2016
Rest parameters are behind a flag (
--es_staging) in node v4 and v5. With them being behind a flag, there could be things that do not work properly. They should be available in the next major version of node (v6). Thanks!ChALkeR commentedon Feb 25, 2016
@pranaydutta89 You would probably want to use
babelfor now.pranaydutta89 commentedon Feb 25, 2016
@ChALkeR i am using typescript it's generating the above code.