From 0d8de3dad35216726d6f2e0b5fe333b2b7aa6d10 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 17 Mar 2017 10:34:43 +0100 Subject: Fixed bad string length undump --- tests/lstrlib.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/lstrlib.js b/tests/lstrlib.js index a7693a1..23cd786 100644 --- a/tests/lstrlib.js +++ b/tests/lstrlib.js @@ -438,7 +438,7 @@ test('string.dump', function (t) { linit.luaL_openlibs(L); - lauxlib.luaL_loadstring(L, luaCode); + lauxlib.luaL_loadstring(L, luaCode.trim()); }, "Lua program loaded without error"); @@ -450,6 +450,8 @@ test('string.dump', function (t) { lapi.lua_load(L, null, dv, "test", "binary"); + lapi.lua_call(L, 0, -1); + }, "Lua program ran without error"); t.strictEqual( -- cgit v1.2.3-70-g09d2