Some "old" answers that became obsolete over the time in an attempt to keep them up to date were edited to include relevant changes.
Here is one example
The current documentation (June 2013) says Apps Script provides a subset of ECMAScript 5 and is based on JavaScript 1.8.
Edit: Google has backtracked somewhat. As of Nov 2013, they are reporting that Apps Script is based on 1.6, with a smattering of 1.7 and 1.8.
Edit II: As of May 2020, Google Apps Script is supported by the V8 runtime. Because of this, Apps Script is no longer tied to a specific ECMAScript version.
The above answer has a score of 30, and it' a de-facto canonical answer for questions asking which JavaScript version is supported by Google Apps Script but there are several answers in the same situation:
- The answer is old and was "correct" at the time it was created.
- Over the time it become obsolete. Sometimes the answer author, sometimes someone else in an attempt to update the answer added something new like a change on the platform, a link to a recent bug fix report, or a new code snippet including a recently added feature
- The new content includes an EDIT / UPDATE label.
- The obsolete content is kept in the answer's body
Is it OK to remove the obsolete content and just to keep the last "edit", i.e.,
As of May 2020, Google Apps Script is supported by the V8 runtime. Because of this, Apps Script is no longer tied to a specific ECMAScript version.
Related