Rephrase "assigning/binding to rvalue" errors to include context (#119) (#123)

* Rephrase "assigning/binding to rvalue" error messages with context (#119)

* Fix code style in parser/lval.js

* istanbul ignore some unused branches in parser/lval.js

* Fix code style again in parser/lval.js
This commit is contained in:
Moti Zilberman
2016-09-22 19:02:20 +03:00
committed by Henry Zhu
parent 650e33376a
commit 774e6b446b
44 changed files with 87 additions and 76 deletions

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in assignment expression (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in assignment expression (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:1)"
"throws": "Invalid left-hand side in assignment expression (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in postfix operation (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in postfix operation (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:2)"
"throws": "Invalid left-hand side in prefix operation (1:2)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:2)"
"throws": "Invalid left-hand side in prefix operation (1:2)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:5)"
"throws": "Invalid left-hand side in for-in statement (1:5)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in assignment expression (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in assignment expression (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:5)"
"throws": "Invalid left-hand side in for-in statement (1:5)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:5)"
"throws": "Invalid left-hand side in for-in statement (1:5)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in assignment expression (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:1)"
"throws": "Invalid left-hand side in assignment expression (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:7)"
"throws": "Invalid left-hand side in object destructuring pattern (1:7)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:1)"
"throws": "Invalid left-hand side in arrow function parameters (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:1)"
"throws": "Invalid left-hand side in arrow function parameters (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:3)"
"throws": "Invalid left-hand side in arrow function parameters (1:3)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:1)"
"throws": "Invalid left-hand side in assignment expression (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:2)"
"throws": "Invalid left-hand side in arrow function parameters (1:2)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:4)"
"throws": "Invalid left-hand side in object destructuring pattern (1:4)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:5)"
"throws": "Invalid left-hand side in object destructuring pattern (1:5)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:1)"
"throws": "Invalid left-hand side in assignment expression (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:5)"
"throws": "Invalid left-hand side in for-of statement (1:5)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:16)"
"throws": "Invalid left-hand side in arrow function parameters (1:16)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:25)"
"throws": "Invalid left-hand side in arrow function parameters (1:25)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in assignment expression (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in assignment expression (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:1)"
"throws": "Invalid left-hand side in assignment expression (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in postfix operation (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in postfix operation (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:2)"
"throws": "Invalid left-hand side in prefix operation (1:2)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:2)"
"throws": "Invalid left-hand side in prefix operation (1:2)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:5)"
"throws": "Invalid left-hand side in for-in statement (1:5)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in assignment expression (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:0)"
"throws": "Invalid left-hand side in assignment expression (1:0)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:1)"
"throws": "Invalid left-hand side in arrow function parameters (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:1)"
"throws": "Invalid left-hand side in arrow function parameters (1:1)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:5)"
"throws": "Invalid left-hand side in for-in statement (1:5)"
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Assigning to rvalue (1:5)"
"throws": "Invalid left-hand side in for-in statement (1:5)"
}