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.
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.