Skip to content

Commit

Permalink
fix: add ecmaversion>5
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Apr 15, 2021
1 parent bcf0a96 commit a4ca5b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lib/parse.js
Expand Up @@ -108,14 +108,14 @@ describe("parse()", () => {
// https://github.com/eslint/espree/issues/470
it("Should throw on invalid `(a = 1) = t`", () => {
assert.throws(() => {
espree.parse("(a = 1) = t");
espree.parse("(a = 1) = t", { ecmaVersion: 6 });
});
});

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

Expand Down

0 comments on commit a4ca5b5

Please sign in to comment.