Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

EcmaScript 6?

Hey all, Can anyone advise on whether Roll20 API supports EcmaScript 6 in full? I'm having difficulty finding information on what is supported. Hopefully I haven't overlooked the obvious somewhere... Thanks! :)
1465996067

Edited 1465996174
Lithl
Pro
Sheet Author
API Scripter
Roll20 has partial support for ECMAScript 6. I believe the support roughly matches NodeJS 4 on the  ECMAScript 6 Compatibility Table . So, certain features (like class, super, and let) are only available in strict mode, certain features (like rest parameters) don't work at all, and certain features (like template literals) work perfectly fine.
1466015187
The Aaron
Pro
API Scripter
That is my experience as well.  Also note that Promise support is present.  
1466094998
Kryx
Pro
Sheet Author
API Scripter
I use babel to convert my sheetworkers from ES6 to ES5.