Permalink
Browse files

Fixed error message for invalid array size

  • Loading branch information...
1 parent 631976f commit d6621181e9cdc29fd240ca8a7fd8e000ca3f2594 @rinon rinon committed Jul 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/esprima.js
View
@@ -170,7 +170,8 @@
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',
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.

0 comments on commit d662118

Please sign in to comment.