This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a commit to branch graaljs2
in repository https://gitbox.apache.org/repos/asf/netbeans.git

commit 35df98c0536adb162d3ee79a527b7b37fbf21cb8
Author: Matthias Bläsing <mblaes...@doppel-helix.eu>
AuthorDate: Sun Jun 16 12:48:31 2019 +0200

    Ensure recent ECMAScript version
---
 .../src/org/netbeans/modules/javascript2/editor/parser/JsParser.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/webcommon/javascript2.editor/src/org/netbeans/modules/javascript2/editor/parser/JsParser.java
 
b/webcommon/javascript2.editor/src/org/netbeans/modules/javascript2/editor/parser/JsParser.java
index 5487856..b828ba7 100644
--- 
a/webcommon/javascript2.editor/src/org/netbeans/modules/javascript2/editor/parser/JsParser.java
+++ 
b/webcommon/javascript2.editor/src/org/netbeans/modules/javascript2/editor/parser/JsParser.java
@@ -96,7 +96,7 @@ public class JsParser extends 
SanitizingParser<JsParserResult> {
 
         ScriptEnvironment.Builder builder = ScriptEnvironment.builder();
         Parser parser = new Parser(
-                builder.emptyStatements(true).build(),
+                builder.emptyStatements(true).ecmaScriptVersion(2018).build(),
                 source,
                 errorManager);
         FunctionNode node = null;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to