avm2: Add a test for box-then-to-bool bug

This commit is contained in:
Adrian Wielgosik 2023-02-25 21:59:18 +01:00 committed by Adrian Wielgosik
parent b9dc8a4d52
commit 8bdf215462
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
true,false

View File

@ -0,0 +1,13 @@
// compiled with mxmlc
package {
import flash.display.MovieClip;
public class Test extends MovieClip {
public function Test() {
}
}
}
var vec = Vector.<Object>([true, false]);
vec = Vector.<Boolean>(vec);
trace(vec);

Binary file not shown.

View File

@ -0,0 +1 @@
num_frames = 1