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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user