Enable ES6 features in Rhino
This commit is contained in:
parent
e61b654238
commit
796a6e7337
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ public final class RhinoCore implements ScopeProvider {
|
|||
// optimization level for rhino engine, ranges from -1 to 9
|
||||
int optLevel = 0;
|
||||
|
||||
// language version - default to JS 1.8
|
||||
int languageVersion = 180;
|
||||
// language version - default to ES6
|
||||
int languageVersion = 200;
|
||||
|
||||
// debugger/tracer flags
|
||||
boolean hasDebugger = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue