From 269afce1e3b55b92ccc1715a69830d8a000704e6 Mon Sep 17 00:00:00 2001 From: Lord-McSweeney Date: Mon, 9 Dec 2024 21:39:40 -0800 Subject: [PATCH] tests: Add test for `3 instanceof int` and `uint.prototype.toString.prototype` --- tests/tests/swfs/avm2/function_proto/Test.as | 1 + tests/tests/swfs/avm2/function_proto/output.txt | 1 + tests/tests/swfs/avm2/function_proto/test.swf | Bin 638 -> 662 bytes tests/tests/swfs/avm2/int_instanceof/output.txt | 3 +++ tests/tests/swfs/avm2/int_instanceof/test.swf | Bin 0 -> 425 bytes tests/tests/swfs/avm2/int_instanceof/test.toml | 1 + 6 files changed, 6 insertions(+) create mode 100644 tests/tests/swfs/avm2/int_instanceof/output.txt create mode 100644 tests/tests/swfs/avm2/int_instanceof/test.swf create mode 100644 tests/tests/swfs/avm2/int_instanceof/test.toml diff --git a/tests/tests/swfs/avm2/function_proto/Test.as b/tests/tests/swfs/avm2/function_proto/Test.as index c155ab77520d..3984af696f7f 100644 --- a/tests/tests/swfs/avm2/function_proto/Test.as +++ b/tests/tests/swfs/avm2/function_proto/Test.as @@ -17,3 +17,4 @@ trace(f()) var p = Function.prototype; trace(p()); trace(Function.prototype.call.call()); +trace(uint.prototype.toString.prototype); diff --git a/tests/tests/swfs/avm2/function_proto/output.txt b/tests/tests/swfs/avm2/function_proto/output.txt index 191224fa731a..9cc631063962 100644 --- a/tests/tests/swfs/avm2/function_proto/output.txt +++ b/tests/tests/swfs/avm2/function_proto/output.txt @@ -2,3 +2,4 @@ function Function() {} undefined undefined undefined +[object Object] diff --git a/tests/tests/swfs/avm2/function_proto/test.swf b/tests/tests/swfs/avm2/function_proto/test.swf index 3c35ff08db7456f8beded69903ba29df68398e1d..4324269513d223b9facdd918fd59836003f10957 100644 GIT binary patch delta 380 zcmV-?0fYYj1eOH}T31smssjK3g|P`H0e{KDG26)=!$3yi(i9NBce)GJa?amwsDl*= zeSL%y$TxIT2JU7^vNr$B2n0UE1|USEswjz8u}q^x_>XBgDw0yywZD8539NNui-au6 zI$bSGL~T&(!AqXI3igRLD>T?1Vx7A~d8cbY3a;bvj3CgOYa`Uxe3H0YSQYr4G=GO7 z;1*F8QR8e`RMAh#A7k-ZdT(XvGJsjYNRF{YE#NzdAfWM6Xh3{z@0vZlRN(n;?U6BT ze)`?8`I2%9&viOvdz|3XIkuL}PO@{pazm#WRZ%UvE;*gAPW*KlVv8d}o2nyigy&0J zG@eILgCkFnVlG)KY!;SoOY4MdB54!Esud!@61e?;=2#`$W1u85(gh`{-gFNFyJ)?E zii$h5i&U%8&X^sJztgscWFoGR06wb%!L$u_1Q|D~yvrc%wMeVYo;CEKR*9A*I|!%+ aEd5sr*2xHn;-B$c%x4r_5m^7U?`|u_Z?KvG delta 356 zcmV-q0h|7o1^xsHT31smi30!tZLtX^0e_>^_Y1GGv1dQP*{48K`zPO1)TN0U*mx*$6 zQ!&rQErRbu@E3n&gO2RxKRucl`zmudDggmtLdXql{6@2peyj0H0@hva@IUYg0Dq2F z@4fWB#e{-=Vv{%bzQM!wJh{>;-D-l4?VPs@zCwTmCN|(f$VQGEf4oT-fG+pHGp zVbv{GbV{vK_r7ZvWajPis@)J+saoBKAYY-edZMWi^6C;ugIRh$(N)eG(BuDK=!^i> C7p~j@ diff --git a/tests/tests/swfs/avm2/int_instanceof/output.txt b/tests/tests/swfs/avm2/int_instanceof/output.txt new file mode 100644 index 000000000000..dac32ecf1d7b --- /dev/null +++ b/tests/tests/swfs/avm2/int_instanceof/output.txt @@ -0,0 +1,3 @@ +false +true +true diff --git a/tests/tests/swfs/avm2/int_instanceof/test.swf b/tests/tests/swfs/avm2/int_instanceof/test.swf new file mode 100644 index 0000000000000000000000000000000000000000..5669b1800857505d29a480572fedfcac66d0ed7e GIT binary patch literal 425 zcmV;a0apG)S5pz40ssJboPANtPUA2Xy|&{xkA}8GNvptU2B{Le#+s2>bOp2su>cmZ zV1r0n3^i(#Dlr}S8-9T=;1~KwB@YP^7;$CU$HzzKo-02By#}a119T7!n+5<3@M^Vs zZQWrg>QwyuJ&gAc2GD?BPIR^>O3nMeAKt_x(HqAzfB*ci|A+HkfAk=yN=860M53kYK>F4uAD&Y>xYbhSYkqTublIC%wL=ujbT!`|? zsR-+b3lXWD3e|Wbl3M94ayGS#{(iByD^2_FVOmwb4AZTW|Bv>oD*6(1^Ba?`k1_k7 zX0VFDy)f-^sxnJKWTf=dhuKIZ4FkEDk`8fox7NnqnpgK4Ueo*Gt$T#F2*M6V%rGsx z<`8YI?l4Rk)=YvJrHnF04Mt5yEvDP%24>i0xJ>}^Z+4(K5z