avm2: Extend array_concat test with new cases

This commit is contained in:
Adrian Wielgosik 2023-06-12 22:27:49 +02:00 committed by Adrian Wielgosik
parent 42347d7234
commit 19b4bfe5d3
3 changed files with 20 additions and 4 deletions

View File

@ -1,6 +1,11 @@
package {
public class Test {
}
// compiled with mxmlc
package {
import flash.display.MovieClip;
public class Test extends MovieClip {
public function Test() {
}
}
}
function assert_array(a: Array) {
@ -33,4 +38,9 @@ assert_array(e);
trace("//a.concat(b, b);");
var f = a.concat(b, b);
assert_array(f);
assert_array(f);
trace("//a.concat(null, undefined);");
var g = a.concat(null, undefined);
assert_array(g);

View File

@ -33,3 +33,9 @@ f
d
e
f
//a.concat(null, undefined);
a
b
c
null
undefined