Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 24, 2019
1 parent db5e908 commit d29d917
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 32 deletions.
@@ -1 +1 @@
"use strict"; ({ v: eval }) = obj
"use strict"; ({ v: eval } = obj)
Expand Up @@ -13,8 +13,7 @@
}
},
"errors": [
"SyntaxError: Assigning to 'eval' in strict mode (1:20)",
"SyntaxError: You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:15)"
"SyntaxError: Assigning to 'eval' in strict mode (1:20)"
],
"program": {
"type": "Program",
Expand Down Expand Up @@ -49,16 +48,16 @@
},
"expression": {
"type": "AssignmentExpression",
"start": 14,
"end": 33,
"start": 15,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 14
"column": 15
},
"end": {
"line": 1,
"column": 33
"column": 32
}
},
"operator": "=",
Expand Down Expand Up @@ -129,28 +128,28 @@
"name": "eval"
}
}
],
"extra": {
"parenthesized": true,
"parenStart": 14
}
]
},
"right": {
"type": "Identifier",
"start": 30,
"end": 33,
"start": 29,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 30
"column": 29
},
"end": {
"line": 1,
"column": 33
"column": 32
},
"identifierName": "obj"
},
"name": "obj"
},
"extra": {
"parenthesized": true,
"parenStart": 14
}
}
}
Expand Down
@@ -1 +1 @@
"use strict"; ({ v: arguments }) = obj
"use strict"; ({ v: arguments } = obj)
Expand Up @@ -13,8 +13,7 @@
}
},
"errors": [
"SyntaxError: Assigning to 'arguments' in strict mode (1:20)",
"SyntaxError: You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:15)"
"SyntaxError: Assigning to 'arguments' in strict mode (1:20)"
],
"program": {
"type": "Program",
Expand Down Expand Up @@ -49,16 +48,16 @@
},
"expression": {
"type": "AssignmentExpression",
"start": 14,
"end": 38,
"start": 15,
"end": 37,
"loc": {
"start": {
"line": 1,
"column": 14
"column": 15
},
"end": {
"line": 1,
"column": 38
"column": 37
}
},
"operator": "=",
Expand Down Expand Up @@ -129,28 +128,28 @@
"name": "arguments"
}
}
],
"extra": {
"parenthesized": true,
"parenStart": 14
}
]
},
"right": {
"type": "Identifier",
"start": 35,
"end": 38,
"start": 34,
"end": 37,
"loc": {
"start": {
"line": 1,
"column": 35
"column": 34
},
"end": {
"line": 1,
"column": 38
"column": 37
},
"identifierName": "obj"
},
"name": "obj"
},
"extra": {
"parenthesized": true,
"parenStart": 14
}
}
}
Expand Down

0 comments on commit d29d917

Please sign in to comment.