Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Represent holes in ArrayExpression as null

  • Loading branch information...
commit 709de7c64bffe5b624c7fededb5f79388f636ae9 1 parent 379810a
@Constellation Constellation authored committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 esprima.js
View
5 esprima.js
@@ -1621,15 +1621,14 @@ parseYieldExpression: true
// 11.1.4 Array Initialiser
function parseArrayInitialiser() {
- var elements = [],
- undef;
+ var elements = [];
expect('[');
while (!match(']')) {
if (match(',')) {
lex();
- elements.push(undef);
+ elements.push(null);
} else {
elements.push(parseAssignmentExpression());
Please sign in to comment.
Something went wrong with that request. Please try again.