Bug 620182 [@ QuoteString | DecompileSwitch] when JSVAL_IS_DOUBLE(key) and SprintDoubleValue fails due to oom

r=jorendorff
This commit is contained in:
timeless@mozdev.org 2011-06-03 08:57:00 -07:00
parent 8b537ea0b4
commit fd209390e5

View File

@ -1298,6 +1298,8 @@ DecompileSwitch(SprintStack *ss, TableEntry *table, uintN tableLength,
JSOp junk;
todo = SprintDoubleValue(&ss->sprinter, key, &junk);
if (todo < 0)
return JS_FALSE;
str = NULL;
} else {
str = js_ValueToString(cx, Valueify(key));