Skip to content

Commit

Permalink
Upgrade acorn to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Nov 17, 2021
1 parent aeda400 commit e15d541
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function parseExpression(expression: any): ParsingResult<InspectionInferedType>
}

export function parse(value: string): ParsingResult<InspectionInferedType> {
const ast = (acornParser.parse(`(${value})`) as unknown) as estree.Program;
const ast = (acornParser.parse(`(${value})`, { ecmaVersion: 6 }) as unknown) as estree.Program;

let parsingResult: ParsingResult<InspectionUnknown> = {
inferredType: { type: InspectionType.UNKNOWN },
Expand Down

0 comments on commit e15d541

Please sign in to comment.