summaryrefslogtreecommitdiff
path: root/tests/tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.js')
-rw-r--r--tests/tests.js6
1 files changed, 3 insertions, 3 deletions
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);
};