diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-03 14:50:01 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-03 14:50:01 +0100 |
commit | a18f9b667d8c13fecf5bb57639262f67ec48b282 (patch) | |
tree | ae3abd38dd99429f3f7acf520b8df4c488779929 | |
parent | 3b116600d75012d5d4cd1b21343a0179712d32eb (diff) | |
download | fengari-a18f9b667d8c13fecf5bb57639262f67ec48b282.tar.gz fengari-a18f9b667d8c13fecf5bb57639262f67ec48b282.tar.bz2 fengari-a18f9b667d8c13fecf5bb57639262f67ec48b282.zip |
Fixed checkmode test
-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.charAt(0) !== x.charAt(0)) { + if (mode && mode.indexOf(x.charAt(0))) { lapi.lua_pushstring(L, `attempt to load a ${x} chunk (mode is '${mode}')`); luaD_throw(L, TS.LUA_ERRSYNTAX); } |