Bug 839751 - "Assertion failure: i < argc_" with localeCompare. r=jwalden

--HG--
extra : rebase_source : 82f04b0635be8e2f408e37d33a2ba186d3810011
This commit is contained in:
Norbert Lindenberg 2013-02-11 19:04:36 -08:00
parent 5ac8600a70
commit b9967ecbd5

View File

@ -776,8 +776,6 @@ str_localeCompare(JSContext *cx, unsigned argc, Value *vp)
return false;
if (cx->runtime->localeCallbacks && cx->runtime->localeCallbacks->localeCompare) {
args[0].setString(thatStr);
Value result;
if (!cx->runtime->localeCallbacks->localeCompare(cx, str, thatStr, &result))
return false;