From 06d5f67ca71a1342f4c557d1b3154e9d42a8c605 Mon Sep 17 00:00:00 2001 From: Tony Germano <39179051+tonygermano@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:18:03 -0400 Subject: [PATCH] Update Shell to use Context.VERSION_ES6 by default resolves https://github.com/mozilla/rhino/issues/1279 --- .../org/mozilla/javascript/tools/shell/ShellContextFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhino-tools/src/main/java/org/mozilla/javascript/tools/shell/ShellContextFactory.java b/rhino-tools/src/main/java/org/mozilla/javascript/tools/shell/ShellContextFactory.java index f43cc1a69..61c96fc17 100644 --- a/rhino-tools/src/main/java/org/mozilla/javascript/tools/shell/ShellContextFactory.java +++ b/rhino-tools/src/main/java/org/mozilla/javascript/tools/shell/ShellContextFactory.java @@ -13,7 +13,7 @@ import org.mozilla.javascript.ErrorReporter; public class ShellContextFactory extends ContextFactory { private boolean strictMode; private boolean warningAsError; - private int languageVersion = Context.VERSION_1_8; + private int languageVersion = Context.VERSION_ES6; private int optimizationLevel; private boolean generatingDebug; private boolean allowReservedKeywords = true;