diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-22 00:11:57 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-22 00:50:39 +1000 |
commit | a1e60cb35b921fee162b545e8399738ffb4f55ab (patch) | |
tree | 7190d86b25dca9a84025ab1839b1c845c65a7fa7 /src | |
parent | 9207ba91e1182f6030ad2e5e5dc0e71d8012d3da (diff) | |
download | fengari-a1e60cb35b921fee162b545e8399738ffb4f55ab.tar.gz fengari-a1e60cb35b921fee162b545e8399738ffb4f55ab.tar.bz2 fengari-a1e60cb35b921fee162b545e8399738ffb4f55ab.zip |
src/lauxlib.js: compare js strings
Diffstat (limited to 'src')
-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 29a6ed4..559e1bc 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -144,7 +144,7 @@ const luaL_argerror = function(L, arg, extramsg) { lua.lua_getinfo(L, ['n'.charCodeAt(0)], ar); - if (ar.namewhat === lua.to_luastring('method', true)) { + if (lua.to_jsstring(ar.namewhat) === "method") { arg--; /* do not count 'self' */ if (arg === 0) /* error is in the self argument itself? */ return luaL_error(L, lua.to_luastring("calling '%s' on bad self (%s)"), ar.name, extramsg); |