Update Shell to use Context.VERSION_ES6 by default

resolves https://github.com/mozilla/rhino/issues/1279
This commit is contained in:
Tony Germano 2024-08-29 17:18:03 -04:00 коммит произвёл Greg Brail
Родитель f8a0a82fa8
Коммит 06d5f67ca7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -13,7 +13,7 @@ import org.mozilla.javascript.ErrorReporter;
public class ShellContextFactory extends ContextFactory { public class ShellContextFactory extends ContextFactory {
private boolean strictMode; private boolean strictMode;
private boolean warningAsError; private boolean warningAsError;
private int languageVersion = Context.VERSION_1_8; private int languageVersion = Context.VERSION_ES6;
private int optimizationLevel; private int optimizationLevel;
private boolean generatingDebug; private boolean generatingDebug;
private boolean allowReservedKeywords = true; private boolean allowReservedKeywords = true;