summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-22 00:11:57 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-22 00:50:39 +1000
commita1e60cb35b921fee162b545e8399738ffb4f55ab (patch)
tree7190d86b25dca9a84025ab1839b1c845c65a7fa7 /src/lauxlib.js
parent9207ba91e1182f6030ad2e5e5dc0e71d8012d3da (diff)
downloadfengari-a1e60cb35b921fee162b545e8399738ffb4f55ab.tar.gz
fengari-a1e60cb35b921fee162b545e8399738ffb4f55ab.tar.bz2
fengari-a1e60cb35b921fee162b545e8399738ffb4f55ab.zip
src/lauxlib.js: compare js strings
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r--src/lauxlib.js2
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);