Skip to content

Commit 7819a28

Browse files
committed
fixed list comparison returning true when one the arrays were empty.
1 parent 9ff2920 commit 7819a28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

taptapir.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,9 @@ random = {
909909

910910

911911
function lists_are_equal(array_a, array_b) {
912+
if (array_a.length != array_b.length) {
913+
return false
914+
}
912915
for (let i=0; i<array_a.length; i++) {
913916
if (array_a[i] != array_b[i]) {
914917
return false

0 commit comments

Comments
 (0)