From a946df6302452323706f715a28029c63f766d1db Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 10 Dec 2017 02:22:47 +1100 Subject: tests/: Fix linter complaints --- tests/tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/tests.js') diff --git a/tests/tests.js b/tests/tests.js index b70a306..1bc4fc6 100644 --- a/tests/tests.js +++ b/tests/tests.js @@ -7,9 +7,9 @@ const toByteCode = function(luaCode) { let L = getState(luaCode); let b = []; if (lua.lua_dump(L, function(L, b, size, B) { - B.push(...b.slice(0, size)); - return 0; - }, b, false) !== 0) + B.push(...b.slice(0, size)); + return 0; + }, b, false) !== 0) throw Error("unable to dump given function"); return new DataView(Uint8Array.from(b).buffer); }; -- cgit v1.2.3-54-g00ecf