We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d676059 commit 99a3509Copy full SHA for 99a3509
hscript/Parser.hx
@@ -446,12 +446,18 @@ class Parser {
446
case TBkOpen:
447
var a = new Array();
448
tk = token();
449
+ var first = true;
450
while( tk != TBkClose && (!resumeErrors || tk != TEof) ) {
451
+ if (!first) {
452
+ if (tk != TComma)
453
+ unexpected(tk);
454
+ else
455
+ tk = token();
456
+ }
457
+ first = false;
458
push(tk);
459
a.push(parseExpr());
460
- if( tk == TComma )
- tk = token();
461
}
462
if( a.length == 1 && a[0] != null )
463
switch( expr(a[0]) ) {
0 commit comments