Bug 364264 Assertion failure: pcdepth >= 0, at jsopcode.c:4737 - failure to handle JSOP_TRAP in js_DecompileValueGenerator

r=brendan
This commit is contained in:
timeless%mozdev.org 2006-12-21 06:59:51 +00:00
Родитель 4505ff159c
Коммит c87ecd54c6
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -4630,6 +4630,8 @@ js_DecompileValueGenerator(JSContext *cx, intN spindex, jsval v,
/* Let pc2 be non-null only for JSOP_LITOPX. */
pc2 = NULL;
op = (JSOp) *pc;
if (op == JSOP_TRAP)
op = JS_GetTrapOpcode(cx, script, pc);
cs = &js_CodeSpec[op];
oplen = cs->length;