From e9db75fac5f5fb4e8a211f69560151fe4415f9d4 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 5 May 2017 15:53:57 +0200 Subject: Renamed findupval to luaF_findupval --- src/lfunc.js | 4 ++-- src/lvm.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lfunc.js b/src/lfunc.js index 7b2c557..d9ac4db 100644 --- a/src/lfunc.js +++ b/src/lfunc.js @@ -52,7 +52,7 @@ const luaF_newLclosure = function(L, n) { }; -const findupval = function(L, level) { +const luaF_findupval = function(L, level) { let pp = L.openupval; let p = pp; while (pp !== null && pp.v >= level) { @@ -123,7 +123,7 @@ const luaF_getlocalname = function(f, local_number, pc) { module.exports.MAXUPVAL = 255; module.exports.Proto = Proto; module.exports.UpVal = UpVal; -module.exports.findupval = findupval; +module.exports.luaF_findupval = luaF_findupval; module.exports.luaF_close = luaF_close; module.exports.luaF_getlocalname = luaF_getlocalname; module.exports.luaF_initupvals = luaF_initupvals; diff --git a/src/lvm.js b/src/lvm.js index 9145b88..ef5d370 100644 --- a/src/lvm.js +++ b/src/lvm.js @@ -666,7 +666,7 @@ const luaV_execute = function(L) { for (let i = 0; i < nup; i++) { if (uv[i].instack) - ncl.upvals[i] = lfunc.findupval(L, base + uv[i].idx); + ncl.upvals[i] = lfunc.luaF_findupval(L, base + uv[i].idx); else ncl.upvals[i] = cl.upvals[uv[i].idx]; ncl.upvals[i].refcount++; -- cgit v1.2.3-70-g09d2