Skip to content

Commit

Permalink
Breaking: acorn to 8.1.0 (fixes #470) (#473)
Browse files Browse the repository at this point in the history
* Breaking: acorn to 8.1.0

changelog:
https://github.com/acornjs/acorn/blob/master/acorn/CHANGELOG.md#breaking-changes

fixes #470, #472

* Update tests/lib/parse.js

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>

* fix: add ecmaversion>5

* fix: remove #472 test case

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
  • Loading branch information
aladdin-add and mdjermanovic committed Apr 16, 2021
1 parent 8234c48 commit 995d2a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/lib/parse.js
@@ -1,5 +1,5 @@
/**
* @fileoverview Tests for tokenize().
* @fileoverview Tests for parse().
* @author Nicholas C. Zakas
*/

Expand Down Expand Up @@ -107,6 +107,12 @@ describe("parse()", () => {
);
});

// https://github.com/eslint/espree/issues/470
it("Should throw on invalid `(a = 1) = t`", () => {
assert.throws(() => {
espree.parse("(a = 1) = t", { ecmaVersion: 6 });
});
});
});

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

0 comments on commit 995d2a8

Please sign in to comment.