mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 620182 [@ QuoteString | DecompileSwitch] when JSVAL_IS_DOUBLE(key) and SprintDoubleValue fails due to oom
r=jorendorff
This commit is contained in:
parent
8b537ea0b4
commit
fd209390e5
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user