From ef0784b2982e65af05982d8e1e18ef1d45ea96ad Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 7 Jan 2018 03:28:43 +1100 Subject: Avoid Uint8Array.slice (IE compat) --- src/liolib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liolib.js') 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; }; -- cgit v1.2.3-54-g00ecf