summaryrefslogtreecommitdiff
path: root/lists.js
diff options
context:
space:
mode:
Diffstat (limited to 'lists.js')
-rw-r--r--lists.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lists.js b/lists.js
index 3166bf1..13ec880 100644
--- a/lists.js
+++ b/lists.js
@@ -305,7 +305,7 @@ List.prototype.equalTo = function (other) {
if (this.length() !== other.length()) {
return false;
}
- for (i = 0; i < this.length(); i += 1) {
+ for (i = 1; i <= this.length(); i += 1) {
if (!snapEquals(this.at(i), other.at(i))) {
return false;
}