diff --git a/core/tests/regression_tests.rs b/core/tests/regression_tests.rs index e4c3b2f99..58335c93b 100644 --- a/core/tests/regression_tests.rs +++ b/core/tests/regression_tests.rs @@ -130,6 +130,7 @@ swf_tests! { #[ignore] (xml_inspect_xmldecl, "avm1/xml_inspect_xmldecl", 1), (xml_inspect_createmethods, "avm1/xml_inspect_createmethods", 1), (xml_inspect_parsexml, "avm1/xml_inspect_parsexml", 1), + (funky_function_calls, "avm1/funky_function_calls", 1), } #[test] diff --git a/core/tests/swfs/avm1/funky_function_calls/output.txt b/core/tests/swfs/avm1/funky_function_calls/output.txt new file mode 100644 index 000000000..497db4e86 --- /dev/null +++ b/core/tests/swfs/avm1/funky_function_calls/output.txt @@ -0,0 +1,44 @@ +_level0.childinst +Is it the global object: false +Argument 0: Natural function call +Argument 1: undefined +[type Object] +Is it the global object: true +Argument 0: Apply w/ Undefined +Argument 1: undefined +[type Object] +Is it the global object: true +Argument 0: Apply w/ Global +Argument 1: 3 +_level0 +Is it the global object: false +Argument 0: Apply w/ Parent +Argument 1: undefined +_level0 +Is it the global object: false +Argument 0: Apply w/ Root +Argument 1: undefined +[type Object] +Is it the global object: true +Argument 0: Call w/ Undefined +Argument 1: undefined +[type Object] +Is it the global object: true +Argument 0: Call w/ Global +Argument 1: undefined +_level0 +Is it the global object: false +Argument 0: Call w/ Parent +Argument 1: undefined +_level0 +Is it the global object: false +Argument 0: Call w/ Root +Argument 1: 2 +[type Object] +Is it the global object: true +Argument 0: Fake arguments object +Argument 1: 5 +Let's try some things that don't work +undefined +undefined +Those do NOT generate errors on FP7/AS2. diff --git a/core/tests/swfs/avm1/funky_function_calls/test.fla b/core/tests/swfs/avm1/funky_function_calls/test.fla new file mode 100644 index 000000000..28e85e970 Binary files /dev/null and b/core/tests/swfs/avm1/funky_function_calls/test.fla differ diff --git a/core/tests/swfs/avm1/funky_function_calls/test.swf b/core/tests/swfs/avm1/funky_function_calls/test.swf new file mode 100644 index 000000000..758d77ca5 Binary files /dev/null and b/core/tests/swfs/avm1/funky_function_calls/test.swf differ