From 72466d7c73ca7659aca14d44c90e72fa0a0b83b8 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 16 Jun 2017 17:54:44 +1000 Subject: src/ldebug.js: TMS uses TM_ prefix not OP_ --- src/ldebug.js | 24 ++++++++++++------------ 1 file 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; -- cgit v1.2.3-70-g09d2