mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 704369: Factor break emit. (r=Waldo)
This commit is contained in:
parent
cd4abac0d4
commit
62d4576973
@ -6021,7 +6021,7 @@ EmitBreak(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn)
|
||||
jsatomid labelIndex;
|
||||
if (atom) {
|
||||
if (!bce->makeAtomIndex(atom, &labelIndex))
|
||||
return JS_FALSE;
|
||||
return false;
|
||||
|
||||
while (stmt->type != STMT_LABEL || stmt->label != atom)
|
||||
stmt = stmt->down;
|
||||
@ -6033,9 +6033,7 @@ EmitBreak(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn)
|
||||
noteType = (stmt->type == STMT_SWITCH) ? SRC_SWITCHBREAK : SRC_BREAK;
|
||||
}
|
||||
|
||||
if (EmitGoto(cx, bce, stmt, &stmt->breaks, labelIndex, noteType) < 0)
|
||||
return JS_FALSE;
|
||||
return true;
|
||||
return EmitGoto(cx, bce, stmt, &stmt->breaks, labelIndex, noteType) >= 0;
|
||||
}
|
||||
|
||||
JSBool
|
||||
|
Loading…
Reference in New Issue
Block a user