Skip to content

Commit

Permalink
Fixed error message for invalid array size
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Crane committed Jul 27, 2012
1 parent 631976f commit d662118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/esprima.js
Expand Up @@ -170,7 +170,8 @@
StrictLHSPostfix: 'Postfix increment/decrement may not have eval or arguments operand in strict mode', StrictLHSPostfix: 'Postfix increment/decrement may not have eval or arguments operand in strict mode',
StrictLHSPrefix: 'Prefix increment/decrement may not have eval or arguments operand in strict mode', StrictLHSPrefix: 'Prefix increment/decrement may not have eval or arguments operand in strict mode',
StrictReservedWord: 'Use of future reserved word in strict mode', StrictReservedWord: 'Use of future reserved word in strict mode',
CastingNothing: 'Body of cast expression empty' CastingNothing: 'Body of cast expression empty',
ArraySizeIntegral: 'Stack allocated array size must be an integer literal'
}; };


// See also tools/generate-unicode-regex.py. // See also tools/generate-unicode-regex.py.
Expand Down

0 comments on commit d662118

Please sign in to comment.