You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2019/07/17 19:20:34 UTC
[netbeans] 04/04: Ensure recent ECMAScript version
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 <mb...@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists