diff --git a/tests/tests/swfs/avm2/array_concat/Test.as b/tests/tests/swfs/avm2/array_concat/Test.as index 6dd9b44d1..bbf4a597a 100644 --- a/tests/tests/swfs/avm2/array_concat/Test.as +++ b/tests/tests/swfs/avm2/array_concat/Test.as @@ -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); \ No newline at end of file +assert_array(f); + +trace("//a.concat(null, undefined);"); +var g = a.concat(null, undefined); + +assert_array(g); diff --git a/tests/tests/swfs/avm2/array_concat/output.txt b/tests/tests/swfs/avm2/array_concat/output.txt index 5b3a2f757..8eb96d4db 100644 --- a/tests/tests/swfs/avm2/array_concat/output.txt +++ b/tests/tests/swfs/avm2/array_concat/output.txt @@ -33,3 +33,9 @@ f d e f +//a.concat(null, undefined); +a +b +c +null +undefined diff --git a/tests/tests/swfs/avm2/array_concat/test.swf b/tests/tests/swfs/avm2/array_concat/test.swf index 0351fbebd..a65a7070f 100644 Binary files a/tests/tests/swfs/avm2/array_concat/test.swf and b/tests/tests/swfs/avm2/array_concat/test.swf differ