mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-22 15:26:08 +00:00
AS1/2 Delete operator with nonIdentifier parameters (e.g. spaces or obfuscated)
This commit is contained in:
@@ -2018,4 +2018,15 @@ public class ActionScript2Test extends ActionScript2TestBase {
|
||||
+ "trace(\"forInSwitchTest\");\r\n"
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void frame73_deleteTest() {
|
||||
compareSrc(73, "trace(\"deleteTest\");\r\n"
|
||||
+ "var obj = {a:1,b:2};\r\n"
|
||||
+ "obj[\"salam likum\"] = 58;\r\n"
|
||||
+ "delete obj.a;\r\n"
|
||||
+ "delete obj[\"salam likum\"];\r\n"
|
||||
+ "delete \"bagr aa\";\r\n"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user