From 85465a5f50bf08e3b42b1c6f3abe036fd3c64ba0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 4 Oct 2014 02:09:50 +1000 Subject: [PATCH] iter.indexOf should return -1 when the elem is not found. --- common/modules/base.jsm | 1 + 1 file changed, 1 insertion(+) diff --git a/common/modules/base.jsm b/common/modules/base.jsm index 96d4f083..024be9d9 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -1607,6 +1607,7 @@ update(iter, { return i; i++; } + return -1; }, /**