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 @@
const MULTIPLIER = 5;
class MULTIPLIER {
}

View File

@@ -1,3 +0,0 @@
{
"throws": "Duplicate declaration \"MULTIPLIER\""
}

View File

@@ -1,3 +0,0 @@
const MULTIPLIER = 5;
var MULTIPLIER = "overwrite";

View File

@@ -1,3 +0,0 @@
{
"throws": "Duplicate declaration \"MULTIPLIER\""
}

View File

@@ -1,5 +0,0 @@
const MULTIPLIER = 5;
function MULTIPLIER() {
}

View File

@@ -1,3 +0,0 @@
{
"throws": "Duplicate declaration \"MULTIPLIER\""
}

View File

@@ -1 +0,0 @@
try {} catch (a) { let a }

View File

@@ -1,3 +0,0 @@
{
"throws": "Duplicate declaration \"a\""
}