compat-table icon indicating copy to clipboard operation
compat-table copied to clipboard

Add test results for Google Apps Script

Open cyberixae opened this issue 8 years ago • 4 comments

It would be nice to know which ES5 and ES6 features are usable in Google Apps Script. See https://developers.google.com/apps-script/ for details.

cyberixae avatar May 13 '16 19:05 cyberixae

I, too, am interested in this. Is there any guide / documentation on adding new platforms?

larvanitis avatar Jul 22 '19 11:07 larvanitis

Unfortunately we don't have any guide. New implementation should be added to environments.json and after that test results should be added to data-es*.js files. After that npm run build should update related HTML files.

Are Apps Scripts work on top of V8?

chicoxyzzy avatar Jul 22 '19 11:07 chicoxyzzy

Are Apps Scripts work on top of V8?

Highly unlikely. I believe it runs on some other, custom, non-standard engine. According to Google's documentation: Apps Script is based on JavaScript 1.6, plus a few features from 1.7 and 1.8.

Plus, there is no window or DOM.

larvanitis avatar Jul 22 '19 12:07 larvanitis

@larvanitis It seems that the Google's documentaion was changed.

The V8 runtime supports modern ECMAScript syntax and features. The Rhino runtime is based on the older JavaScript 1.6 standard, plus a few features from 1.7 and 1.8. You can freely choose which runtime to use with your script, but the V8 runtime is strongly recommended.

yumetodo avatar Jul 16 '20 14:07 yumetodo