Skip to content

Commit

Permalink
fix: acorn parser warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Jan 18, 2024
1 parent 73d3dbc commit ea73aa9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,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: 2020 }) as unknown as estree.Program;

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

0 comments on commit ea73aa9

Please sign in to comment.