mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-20 00:16:14 +00:00
Fixed #2231 AS3 coercion to String as convert
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -107,6 +107,7 @@ package
|
||||
TestSlots;
|
||||
TestSlots2;
|
||||
TestStrictEquals;
|
||||
TestStringCoerce;
|
||||
TestStringConcat;
|
||||
TestStrings;
|
||||
TestSwitch;
|
||||
|
||||
14
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestStringCoerce.as
vendored
Normal file
14
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestStringCoerce.as
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestStringCoerce
|
||||
{
|
||||
var a:Object = null;
|
||||
|
||||
public function run():*
|
||||
{
|
||||
var text1:String = this.a["test"];
|
||||
var text2:String = String(this.a["test"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user