Skip to content

Commit 716ec27

Browse files
authored
Merge pull request #8522 from dontwanttothink/update-acorn-es-version
Sketch verifier: parse using the latest supported ECMAScript version
2 parents 3d4c354 + 7641c65 commit 716ec27

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)