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.
The text was updated successfully, but these errors were encountered:
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!
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.
The text was updated successfully, but these errors were encountered: