Migrate some duplicate binding tests to traverse (#9532)

* Migrate try-catch duplicate error

* Remove exception for functions and let in the same scope

* Migrate duplicate bindings tests to traverse

* Add test for subscope and let/const

* Add more test cases
This commit is contained in:
Daniel Tschinder
2019-02-19 21:25:49 -08:00
committed by GitHub
parent 21eb0837e8
commit b32d271fee
13 changed files with 182 additions and 42 deletions

View File

@@ -1,5 +0,0 @@
try {
throw 0;
} catch (e) {
let e = new TypeError('Duplicate variable declaration; will throw an error.');
}

View File

@@ -1,4 +0,0 @@
{
"plugins": ["../../../../lib"],
"throws": "Duplicate declaration \"e\""
}