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:
@@ -1,5 +0,0 @@
|
||||
try {
|
||||
throw 0;
|
||||
} catch (e) {
|
||||
let e = new TypeError('Duplicate variable declaration; will throw an error.');
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"plugins": ["../../../../lib"],
|
||||
"throws": "Duplicate declaration \"e\""
|
||||
}
|
||||
Reference in New Issue
Block a user