mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fixed decompiler assertion related to JSOP_TRACE (bug 522624, r=brendan).
This commit is contained in:
parent
eed5fefef2
commit
e40deebae7
@ -4981,7 +4981,8 @@ js_DecompileFunction(JSPrinter *jp)
|
||||
|
||||
#if JS_HAS_DESTRUCTURING
|
||||
/* Skip trace hint if it appears here. */
|
||||
if (js_GetOpcode(jp->sprinter.context, fun->u.i.script, pc) == JSOP_TRACE) {
|
||||
JSOp op = js_GetOpcode(jp->sprinter.context, fun->u.i.script, pc);
|
||||
if (op == JSOP_TRACE || op == JSOP_NOP) {
|
||||
JS_STATIC_ASSERT(JSOP_TRACE_LENGTH == JSOP_NOP_LENGTH);
|
||||
pc += JSOP_TRACE_LENGTH;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user