Skip to content

Commit f4efdfe

Browse files
Configure parser to use the latest supported ECMAScript version
1 parent 276a96a commit f4efdfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/friendly_errors/sketch_verifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const verifierUtils = {
8080

8181
try {
8282
const ast = parse(code, {
83-
ecmaVersion: 2021,
83+
ecmaVersion: 'latest',
8484
sourceType: 'module',
8585
locations: true // This helps us get the line number.
8686
});

0 commit comments

Comments
 (0)