Apps Script v8

apps script v8

Apps Script V8 now supports the same modern JavaScript you can use when writing for the browser. Up until now, you had to write in a dialect of JavaScript-based on ES3, and running on a JavaScript engine emulator. I covered this in some detail in an article some time ago (What JavaScript engine is Apps Script running on?),  but now you can take advantage of JavaScript Es6

Why v8?

The back end has also moved from the JavaScript engine emulator to one based on the V8 engine – the one used in Chrome and NodeJS.


Although syntactically there is a lot you can do in ES6 (most of my coding is on Node, so it’s always been painful to go back to do something on Apps Script), pretty much all your old code will run on V8 with no modification (although there are some execution order issues in the global space that have been introduced, which I’ll cover in a later post).

Getting in v8 run mode

There’s a new menu option to enable v8.

Apps Script V8

About brucemcp 225 Articles
I am a Google Developer Expert and decided to investigate Google Apps Script in my spare time. The more I investigated the more content I created so this site is extremely rich. Now, in 2019, a lot of things have disappeared or don’t work anymore due to Google having retired some stuff. I am however leaving things as is and where I came across some deprecated stuff, I have indicated it. I decided to write a book about it and to also create videos to teach developers who want to learn Google Apps Script. If you find the material contained in this site useful, you can support me by buying my books and or videos.