Bug 720759 - Convert js::SameValue, js::StrictlyEqual, js::LooselyEqual, and js::EqualStrings to return a value through a bool*, not a JSBool*, to eliminate a (single!) Windows warning. r=Ms2ger

This commit is contained in:
Jeff Walden
2012-01-24 10:29:55 -08:00
parent 31014474c1
commit 99e5815528
11 changed files with 88 additions and 52 deletions

View File

@@ -3132,12 +3132,12 @@ array_indexOfHelper(JSContext *cx, IndexOfKind mode, CallArgs &args)
return JS_FALSE;
}
if (!hole) {
JSBool equal;
bool equal;
if (!StrictlyEqual(cx, elt, tosearch, &equal))
return JS_FALSE;
return false;
if (equal) {
args.rval().setNumber(i);
return JS_TRUE;
return true;
}
}
if (i == stop)