From f7e5203a20ef41cf9bc59d339b4f85007a7f3764 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 15 May 2017 17:20:06 +1000 Subject: Separate ZIO and MBuffer data structures - lua_load no longer takes a null reader function --- tests/lstrlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/lstrlib.js') diff --git a/tests/lstrlib.js b/tests/lstrlib.js index dbd27d9..817ebcb 100644 --- a/tests/lstrlib.js +++ b/tests/lstrlib.js @@ -444,7 +444,7 @@ test('string.dump', function (t) { let dv = lua.lua_todataview(L, -1); - lua.lua_load(L, null, dv, lua.to_luastring("test"), lua.to_luastring("binary")); + lua.lua_load(L, function(L, s) { let r = s.dv; s.dv = null; return r; }, {dv: dv}, lua.to_luastring("test"), lua.to_luastring("binary")); lua.lua_call(L, 0, -1); -- cgit v1.2.3-54-g00ecf