mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Fix too-stupid-to-live bug (517076, r=me).
This commit is contained in:
parent
34e47d71cb
commit
e7d0b959b4
@ -3685,7 +3685,10 @@ BEGIN_CASE(JSOP_DEFSHARP)
|
||||
slot = GET_UINT16(regs.pc);
|
||||
JS_ASSERT(slot + 1 < fp->script->nfixed);
|
||||
lval = fp->slots[slot];
|
||||
if (JSVAL_IS_VOID(lval)) {
|
||||
if (!JSVAL_IS_PRIMITIVE(lval)) {
|
||||
obj = JSVAL_TO_OBJECT(lval);
|
||||
} else {
|
||||
JS_ASSERT(JSVAL_IS_VOID(lval));
|
||||
obj = js_NewArrayObject(cx, 0, NULL);
|
||||
if (!obj)
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user