Issue #933 AS3 allow numbers as object literal keys

This commit is contained in:
Jindra Petřík
2015-10-29 23:17:37 +01:00
parent 0900fc00cb
commit 7c4d4db6df

View File

@@ -2138,7 +2138,7 @@ public class ActionScript3Parser {
lexer.pushback(s);
}
s = lex();
expected(s, lexer.yyline(), SymbolGroup.IDENTIFIER, SymbolType.STRING);
expected(s, lexer.yyline(), SymbolGroup.IDENTIFIER, SymbolType.STRING, SymbolType.INTEGER, SymbolType.DOUBLE);
GraphTargetItem n = new StringAVM2Item(null, s.value.toString());
//expression(thisType,pkg,needsActivation, importedClasses, openedNamespaces, registerVars, inFunction, inMethod, allowRemainder, variables);