mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 04:58:48 +00:00
Fixed #2231 AS3 coercion to String as convert
This commit is contained in:
@@ -1770,6 +1770,13 @@ public class ActionScript3ClassicAirDecompileTest extends ActionScript3Decompile
|
||||
false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringCoerce() {
|
||||
decompileMethod("classic_air", "testStringCoerce", "var text1:String = this.a[\"test\"];\r\n"
|
||||
+ "var text2:String = String(this.a[\"test\"]);\r\n",
|
||||
false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringConcat() {
|
||||
decompileMethod("classic_air", "testStringConcat", "var k:int = 8;\r\n"
|
||||
|
||||
@@ -1757,6 +1757,13 @@ public class ActionScript3ClassicDecompileTest extends ActionScript3DecompileTes
|
||||
false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringCoerce() {
|
||||
decompileMethod("classic", "testStringCoerce", "var text1:String = this.a[\"test\"];\r\n"
|
||||
+ "var text2:String = String(this.a[\"test\"]);\r\n",
|
||||
false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringConcat() {
|
||||
decompileMethod("classic", "testStringConcat", "var k:int = 8;\r\n"
|
||||
|
||||
Reference in New Issue
Block a user