diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-07 03:28:43 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-07 03:35:03 +1100 |
commit | ef0784b2982e65af05982d8e1e18ef1d45ea96ad (patch) | |
tree | 0cc5a7aff5c54c7dae8f2fa84dc4f32a131e47bf /src/liolib.js | |
parent | a63de72aa0bf0b1b3bd91ed0c23c4d03bcbf4cd5 (diff) | |
download | fengari-ef0784b2982e65af05982d8e1e18ef1d45ea96ad.tar.gz fengari-ef0784b2982e65af05982d8e1e18ef1d45ea96ad.tar.bz2 fengari-ef0784b2982e65af05982d8e1e18ef1d45ea96ad.zip |
Avoid Uint8Array.slice (IE compat)
Diffstat (limited to 'src/liolib.js')
-rw-r--r-- | src/liolib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liolib.js b/src/liolib.js index 3241011..66ef3db 100644 --- a/src/liolib.js +++ b/src/liolib.js @@ -74,7 +74,7 @@ const getiofile = function(L, findex) { lua.lua_getfield(L, lua.LUA_REGISTRYINDEX, findex); let p = lua.lua_touserdata(L, -1); if (isclosed(p)) - lauxlib.luaL_error(L, lua.to_luastring("standard %s file is closed"), findex.slice(IOPREF_LEN)); + lauxlib.luaL_error(L, lua.to_luastring("standard %s file is closed"), findex.subarray(IOPREF_LEN)); return p.f; }; |