Re: [Wikitech-l] Javascript Parse error on MW while using spread syntax

2019-12-18 Thread Egbe Eugene
Thanks very much Lucas. On Wed, Dec 18, 2019 at 11:47 AM Lucas Werkmeister < lucas.werkmeis...@wikimedia.de> wrote: > Spread syntax and other ES6 syntax are not available in MediaWiki: see > T75714 . > > Am Mi., 18. Dez. 2019 um 11:39 Uhr schrieb Egbe Eug

Re: [Wikitech-l] Javascript Parse error on MW while using spread syntax

2019-12-18 Thread Lucas Werkmeister
Spread syntax and other ES6 syntax are not available in MediaWiki: see T75714 . Am Mi., 18. Dez. 2019 um 11:39 Uhr schrieb Egbe Eugene < agboreug...@gmail.com>: > Hi All, > > I am using spread syntax on a array in javascript and it works fine on > command

[Wikitech-l] Javascript Parse error on MW while using spread syntax

2019-12-18 Thread Egbe Eugene
Hi All, I am using spread syntax on a array in javascript and it works fine on command line but when I paste the code in a MW js file, I get the error *'JavaScript parse error: Parse error: Missing ) in parenthetical' *on the line where I used the where I used the spread syntax. Please I need some