summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-22 00:11:14 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-22 00:50:38 +1000
commit9207ba91e1182f6030ad2e5e5dc0e71d8012d3da (patch)
treef79bd00ddf2539c0ddb6c3746f0a43bcf88cd46f /src
parent309cdf8b9bdf8d45196eb94bda7588ddac8915c6 (diff)
downloadfengari-9207ba91e1182f6030ad2e5e5dc0e71d8012d3da.tar.gz
fengari-9207ba91e1182f6030ad2e5e5dc0e71d8012d3da.tar.bz2
fengari-9207ba91e1182f6030ad2e5e5dc0e71d8012d3da.zip
src/lauxlib.js: lua_getinfo takes a lua string (array) not a JS string
Diffstat (limited to 'src')
-rw-r--r--src/lauxlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index 5669995..29a6ed4 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -142,7 +142,7 @@ const luaL_argerror = function(L, arg, extramsg) {
if (!lua.lua_getstack(L, 0, ar)) /* no stack frame? */
return luaL_error(L, lua.to_luastring("bad argument #%d (%s)"), arg, extramsg);
- lua.lua_getinfo(L, 'n', ar);
+ lua.lua_getinfo(L, ['n'.charCodeAt(0)], ar);
if (ar.namewhat === lua.to_luastring('method', true)) {
arg--; /* do not count 'self' */