Skip to content

Commit

Permalink
tests: Add test for 3 instanceof int and `uint.prototype.toString.p…
Browse files Browse the repository at this point in the history
…rototype`
  • Loading branch information
Lord-McSweeney authored and torokati44 committed Dec 13, 2024
1 parent 6adf40e commit 269afce
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/tests/swfs/avm2/function_proto/Test.as
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ trace(f())
var p = Function.prototype;
trace(p());
trace(Function.prototype.call.call());
trace(uint.prototype.toString.prototype);
1 change: 1 addition & 0 deletions tests/tests/swfs/avm2/function_proto/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ function Function() {}
undefined
undefined
undefined
[object Object]
Binary file modified tests/tests/swfs/avm2/function_proto/test.swf
Binary file not shown.
3 changes: 3 additions & 0 deletions tests/tests/swfs/avm2/int_instanceof/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
false
true
true
Binary file added tests/tests/swfs/avm2/int_instanceof/test.swf
Binary file not shown.
1 change: 1 addition & 0 deletions tests/tests/swfs/avm2/int_instanceof/test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
num_frames = 1

0 comments on commit 269afce

Please sign in to comment.