Skip to content

Commit

Permalink
new Array(#expression#) is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
schuyler1d committed Feb 24, 2011
1 parent d193b1c commit 6c23808
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jshint.js
Expand Up @@ -4510,7 +4510,10 @@ loop: for (;;) {
advance('(');
if (nexttoken.id === ')') {
warning("Use the array literal notation [].", token);
} else {
expression(0);
}

advance(')');
}
this.first = c;
Expand Down

0 comments on commit 6c23808

Please sign in to comment.