Is it possible to install ECMAScript version in Node?

I found that Node uses the Chrome V8 JavaScript engine. There is information about ES6 here , and here , There's even a switch for V8 options when using Node:

node --v8-options

But none of the options seem to allow you to select a version of ECMAScript.

Moreover, here I found information that Node ES3 supported several years ago, but later, with the development of V8, he switched to ES5.

Is it possible to force Node to use versions of ECMAScript older than 5th? Are you currently using the ES version to support the V8 engine?

+4
source share
2 answers

EcmaScript .

ES3 ES5, ES5 ES2015, ES3, ES3 ES5 ES2015.

, EcmaScript - , ES5, , use strict, , ES3.

Javascript EcmaScript, , .

+3

JS- spec, , , , . .

ES3 IE6 - 8. ... , IE , , .

+2

Source: https://habr.com/ru/post/1660591/


All Articles