Bug 891209 (part 1) - Change TOK_ERROR from -1 to 0 so that TokenKind values can be used to index into arrays. r=jorendorff.

--HG--
extra : rebase_source : 197cfb12f68da77496aa1dae67261b8b48def897
This commit is contained in:
Nicholas Nethercote 2013-07-10 17:04:18 -07:00
Родитель 5f0258f3c3
Коммит aa9f6934ee
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -29,7 +29,7 @@ namespace js {
namespace frontend {
enum TokenKind {
TOK_ERROR = -1, /* well-known as the only code < EOF */
TOK_ERROR = 0, /* well-known as the only code < EOF */
TOK_EOF, /* end of file */
TOK_EOL, /* end of line; only returned by peekTokenSameLine() */
TOK_SEMI, /* semicolon */