aboutsummaryrefslogtreecommitdiff
path: root/src/ldo.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-12 16:02:43 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-12 16:55:05 +1000
commit6a3290116941015ac63cf3857c45247f140fab45 (patch)
tree6e126d23dc57011a49d60a81cbd3b5a12cf4576c /src/ldo.js
parent1556f554f8d5f100bce10918d914debd467bd827 (diff)
downloadfengari-6a3290116941015ac63cf3857c45247f140fab45.tar.gz
fengari-6a3290116941015ac63cf3857c45247f140fab45.tar.bz2
fengari-6a3290116941015ac63cf3857c45247f140fab45.zip
Rename .pcOff field to l_savedpc
Diffstat (limited to 'src/ldo.js')
-rw-r--r--src/ldo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldo.js b/src/ldo.js
index 41cbb83..5564e27 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -91,7 +91,7 @@ const luaD_precall = function(L, off, nresults) {
ci.l_base = base;
L.top = ci.top = base + fsize;
ci.l_code = p.code;
- ci.pcOff = 0;
+ ci.l_savedpc = 0;
ci.callstatus = lstate.CIST_LUA;
return false;
@@ -108,7 +108,7 @@ const luaD_poscall = function(L, ci, firstResult, nres) {
if (L.hookmask & (defs.LUA_MASKRET | defs.LUA_MASKLINE)) {
if (L.hookmask & defs.LUA_MASKRET)
luaD_hook(L, defs.LUA_HOOKRET, -1);
- L.oldpc = ci.previous.pcOff; /* 'oldpc' for caller function */
+ L.oldpc = ci.previous.l_savedpc; /* 'oldpc' for caller function */
}
let res = ci.funcOff;