summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lvm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lvm.js b/src/lvm.js
index 6bc5377..516f995 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -45,7 +45,7 @@ const luaV_finishOp = function(L) {
ci.callstatus ^= lstate.CIST_LEQ; /* clear mark */
res = res !== 1 ? 1 : 0; /* negate result */
}
- assert(ci.l_code[ci.l_savedpc] === OCi.OP_JMP);
+ assert(ci.l_code[ci.l_savedpc].opcode === OCi.OP_JMP);
if (res !== inst.A) /* condition failed? */
ci.l_savedpc++; /* skip jump instruction */
break;
@@ -66,7 +66,7 @@ const luaV_finishOp = function(L) {
break;
}
case OCi.OP_TFORCALL: {
- assert(ci.l_code[ci.l_savedpc] === OCi.OP_TFORLOOP);
+ assert(ci.l_code[ci.l_savedpc].opcode === OCi.OP_TFORLOOP);
L.top = ci.top; /* correct top */
break;
}