Conway's Game of life compiler test incl. html

This commit is contained in:
dcodeIO
2017-12-07 02:02:22 +01:00
parent d9ad42ed2e
commit 325ecf5165
11 changed files with 885 additions and 113 deletions

View File

@ -379,7 +379,7 @@ export class Parser extends DiagnosticEmitter {
if (tn.skip(Token.EQUALS)) {
if (isDeclare)
this.error(DiagnosticCode.Initializers_are_not_allowed_in_ambient_contexts, tn.range()); // recoverable
initializer = this.parseExpression(tn);
initializer = this.parseExpression(tn, Precedence.COMMA + 1);
if (!initializer)
return null;
}