aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-06-16 17:54:44 +1000
committerdaurnimator <quae@daurnimator.com>2017-06-16 18:06:50 +1000
commit72466d7c73ca7659aca14d44c90e72fa0a0b83b8 (patch)
treefc163633db7d41477bd181d1c0106c2c93347ba0
parent94d5eb3873d2a5155ceeecbd2ff8c73853374c64 (diff)
downloadfengari-72466d7c73ca7659aca14d44c90e72fa0a0b83b8.tar.gz
fengari-72466d7c73ca7659aca14d44c90e72fa0a0b83b8.tar.bz2
fengari-72466d7c73ca7659aca14d44c90e72fa0a0b83b8.zip
src/ldebug.js: TMS uses TM_ prefix not OP_
-rw-r--r--src/ldebug.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index dbd546d..1c55264 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -475,18 +475,18 @@ const funcnamefromcode = function(L, ci) {
case OCi.OP_SETTABLE:
tm = ltm.TMS.TM_NEWINDEX;
break;
- case OCi.OP_ADD: tm = ltm.TMS.OP_ADD; break;
- case OCi.OP_SUB: tm = ltm.TMS.OP_SUB; break;
- case OCi.OP_MUL: tm = ltm.TMS.OP_MUL; break;
- case OCi.OP_MOD: tm = ltm.TMS.OP_MOD; break;
- case OCi.OP_POW: tm = ltm.TMS.OP_POW; break;
- case OCi.OP_DIV: tm = ltm.TMS.OP_DIV; break;
- case OCi.OP_IDIV: tm = ltm.TMS.OP_IDI; break;
- case OCi.OP_BAND: tm = ltm.TMS.OP_BAN; break;
- case OCi.OP_BOR: tm = ltm.TMS.OP_BOR; break;
- case OCi.OP_BXOR: tm = ltm.TMS.OP_BXO; break;
- case OCi.OP_SHL: tm = ltm.TMS.OP_SHL; break;
- case OCi.OP_SHR: tm = ltm.TMS.OP_SHR; break;
+ case OCi.OP_ADD: tm = ltm.TMS.TM_ADD; break;
+ case OCi.OP_SUB: tm = ltm.TMS.TM_SUB; break;
+ case OCi.OP_MUL: tm = ltm.TMS.TM_MUL; break;
+ case OCi.OP_MOD: tm = ltm.TMS.TM_MOD; break;
+ case OCi.OP_POW: tm = ltm.TMS.TM_POW; break;
+ case OCi.OP_DIV: tm = ltm.TMS.TM_DIV; break;
+ case OCi.OP_IDIV: tm = ltm.TMS.TM_IDIV; break;
+ case OCi.OP_BAND: tm = ltm.TMS.TM_BAND; break;
+ case OCi.OP_BOR: tm = ltm.TMS.TM_BOR; break;
+ case OCi.OP_BXOR: tm = ltm.TMS.TM_BXOR; break;
+ case OCi.OP_SHL: tm = ltm.TMS.TM_SHL; break;
+ case OCi.OP_SHR: tm = ltm.TMS.TM_SHR; break;
case OCi.OP_UNM: tm = ltm.TMS.TM_UNM; break;
case OCi.OP_BNOT: tm = ltm.TMS.TM_BNOT; break;
case OCi.OP_LEN: tm = ltm.TMS.TM_LEN; break;