mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 02:50:43 +00:00
Issue #225 AS1/2 object literal does not permit quotes in names
This commit is contained in:
@@ -46,7 +46,7 @@ public class InitObjectActionItem extends ActionItem {
|
||||
if (values.get(i) instanceof TernarOpItem) { //Ternar operator contains ":"
|
||||
valueStr = "(" + valueStr + ")";
|
||||
}
|
||||
objStr += names.get(i).toString(constants) + hilight(":") + valueStr;
|
||||
objStr += names.get(i).toStringNoQuotes(constants) + hilight(":") + valueStr; //AS1/2 do not allow quotes in name here
|
||||
}
|
||||
return hilight("{") + objStr + hilight("}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user