Make top-level equal to block statement context.

Fixes #203.
This commit is contained in:
Ingvar Stepanyan 2015-01-23 11:48:39 +02:00
parent 2e55540bbe
commit 39d752dc6b

View File

@ -614,7 +614,7 @@
tokPos = tokLineStart = 0;
}
tokType = _eof;
tokContext = [];
tokContext = [b_stat];
tokExprAllowed = true;
if (tokPos === 0 && options.allowHashBang && input.slice(0, 2) === '#!') {
skipLineComment(2);