summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-06 23:19:42 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-06 23:19:42 +1100
commit3660168cb4920422b6bf131efc7f0687efc2d4cf (patch)
tree335d4321fbcf695353b63f996c0e92e099b16325 /src/lauxlib.js
parent013d6acd9a22a42e4e59d0f7f1394448e98746c3 (diff)
downloadfengari-3660168cb4920422b6bf131efc7f0687efc2d4cf.tar.gz
fengari-3660168cb4920422b6bf131efc7f0687efc2d4cf.tar.bz2
fengari-3660168cb4920422b6bf131efc7f0687efc2d4cf.zip
Use Uint8Array.prototype.toString instead of .join (IE compat)
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 7f491e1..e94b886 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -154,7 +154,7 @@ const luaL_argerror = function(L, arg, extramsg) {
lua.lua_getinfo(L, lua.to_luastring("n"), ar);
- if (ar.namewhat.join() === lua.to_luastring("method").join()) {
+ if (ar.namewhat.toString() === lua.to_luastring("method").toString()) { /* TODO: luastring_eq? */
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);