diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-06 07:34:00 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-06 08:07:34 +0100 |
commit | d792a7dad54039074890d9d379eec8676cb9fa5a (patch) | |
tree | 3bb2391b1a48f4fa460ab5f20f9f439b533c9e65 /src/ldo.js | |
parent | 2ac8543dfd87f4c227385d6890bfcb011fc341f1 (diff) | |
download | fengari-d792a7dad54039074890d9d379eec8676cb9fa5a.tar.gz fengari-d792a7dad54039074890d9d379eec8676cb9fa5a.tar.bz2 fengari-d792a7dad54039074890d9d379eec8676cb9fa5a.zip |
string.char
Diffstat (limited to 'src/ldo.js')
-rw-r--r-- | src/ldo.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -521,7 +521,7 @@ class SParser { } const checkmode = function(L, mode, x) { - if (mode && mode.indexOf(x.charAt(0))) { + if (mode && mode.indexOf(x.charAt(0)) !== -1) { lapi.lua_pushstring(L, `attempt to load a ${x} chunk (mode is '${mode}')`); luaD_throw(L, TS.LUA_ERRSYNTAX); } |