Ensure non pattern shorthand props are checked for reserved words (#479)

This commit is contained in:
Brian Ng
2017-04-21 09:25:34 -05:00
committed by Daniel Tschinder
parent d975b91a54
commit bc0719a145
5 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1 @@
var x = ({ const });

View File

@@ -0,0 +1,3 @@
{
"throws": "const is a reserved word (1:11)"
}

View File

@@ -0,0 +1 @@
({ get, this, if });

View File

@@ -0,0 +1,3 @@
{
"throws": "this is a reserved word (1:8)"
}