diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-07 02:52:40 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-07 03:34:56 +1100 |
commit | e46d3e7d8d7226d49aad05f5a9c639c77d53bb04 (patch) | |
tree | fe3e99cbfce31d7d3495c0f861cbdc0aad67167a /src/ldo.js | |
parent | 6ffe07fc5d16ee9acdcd6651d433ce13b193cd15 (diff) | |
download | fengari-e46d3e7d8d7226d49aad05f5a9c639c77d53bb04.tar.gz fengari-e46d3e7d8d7226d49aad05f5a9c639c77d53bb04.tar.bz2 fengari-e46d3e7d8d7226d49aad05f5a9c639c77d53bb04.zip |
Introduce luastring_indexOf as Uint8Array.indexOf doesn't exist everywhere
Diffstat (limited to 'src/ldo.js')
-rw-r--r-- | src/ldo.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -675,7 +675,7 @@ class SParser { } const checkmode = function(L, mode, x) { - if (mode && mode.indexOf(x[0]) === -1) { + if (mode && defs.luastring_indexOf(mode, x[0]) === -1) { lobject.luaO_pushfstring(L, defs.to_luastring("attempt to load a %s chunk (mode is '%s')"), x, mode); luaD_throw(L, TS.LUA_ERRSYNTAX); |