Skip to content

Commit 9d5d488

Browse files
committed
feat(jstree): set acorn ecma to latest
1 parent 0eb1598 commit 9d5d488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jstree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function handleNode(node, options) {
204204

205205
export function parse(input, { qualifiers = [], float = 'Number', integer = float, string = 'String', boolean = 'Boolean', locations = false, ranges = false, operators, scope = {}, ...options } = {}) {
206206
// TODO: use onToken !!!!
207-
const ast = acorn.parse(input, { ...options, locations, ranges, ecmaVersion: 6 });
207+
const ast = acorn.parse(input, { ...options, locations, ranges, ecmaVersion: 'latest' });
208208
const node = handleNode(ast, { qualifiers, integer, float, string, boolean, scope, operators });
209209

210210
return node;

0 commit comments

Comments
 (0)