AS1/2 Delete operator with nonIdentifier parameters (e.g. spaces or obfuscated)

This commit is contained in:
Jindra Petřík
2018-05-27 22:42:26 +02:00
parent f61772c8f7
commit f48c92df27
6 changed files with 35 additions and 6 deletions

View File

@@ -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"
);
}
}