diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-22 00:11:14 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-22 00:50:38 +1000 |
commit | 9207ba91e1182f6030ad2e5e5dc0e71d8012d3da (patch) | |
tree | f79bd00ddf2539c0ddb6c3746f0a43bcf88cd46f | |
parent | 309cdf8b9bdf8d45196eb94bda7588ddac8915c6 (diff) | |
download | fengari-9207ba91e1182f6030ad2e5e5dc0e71d8012d3da.tar.gz fengari-9207ba91e1182f6030ad2e5e5dc0e71d8012d3da.tar.bz2 fengari-9207ba91e1182f6030ad2e5e5dc0e71d8012d3da.zip |
src/lauxlib.js: lua_getinfo takes a lua string (array) not a JS string
-rw-r--r-- | src/lauxlib.js | 2 |
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' */ |