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 @@
|
||||
const MULTIPLIER = 5;
|
||||
|
||||
class MULTIPLIER {
|
||||
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "Duplicate declaration \"MULTIPLIER\""
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
const MULTIPLIER = 5;
|
||||
|
||||
var MULTIPLIER = "overwrite";
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "Duplicate declaration \"MULTIPLIER\""
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
const MULTIPLIER = 5;
|
||||
|
||||
function MULTIPLIER() {
|
||||
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "Duplicate declaration \"MULTIPLIER\""
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
try {} catch (a) { let a }
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "Duplicate declaration \"a\""
|
||||
}
|
||||
Reference in New Issue
Block a user