Closed
Description
import { parse } from "acorn";
parse('function foo(...[options]) {}',
{ ecmaVersion: 2015 },
);
3645 | var loc = getLineInfo(this.input, pos);
3646 | message += " (" + loc.line + ":" + loc.column + ")";
3647 | if (this.sourceFile) {
3648 | message += " in " + this.sourceFile;
3649 | }
3650 | var err = new SyntaxError(message);
^
SyntaxError: Unexpected token (1:16)
pos: 16,
loc: Position {
line: 1,
column: 16,
offset: [Function: offset],
},
raisedAt: 17,
ES6 should support this feature without throwing an error.
Metadata
Metadata
Assignees
Labels
No labels