Skip to content

Commit

Permalink
Upgrade: acorn to 8.2.2 (fixes #472) (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add authored Apr 30, 2021
1 parent 864a73e commit 94508b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"license": "BSD-2-Clause",
"dependencies": {
"acorn": "^8.1.0",
"acorn": "^8.2.2",
"acorn-jsx": "^5.3.1",
"eslint-visitor-keys": "^2.0.0"
},
Expand Down
7 changes: 7 additions & 0 deletions tests/lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ describe("parse()", () => {
espree.parse("(a = 1) = t", { ecmaVersion: 6 });
});
});

// https://github.com/eslint/espree/issues/472
it("Should throw on invalid `async () => await 5 ** 6;`", () => {
assert.throws(() => {
espree.parse("async () => await 5 ** 6;", { ecmaVersion: 10 });
});
});
});

describe("nodes", () => {
Expand Down

0 comments on commit 94508b7

Please sign in to comment.