summaryrefslogtreecommitdiff
path: root/tests/tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.js')
-rw-r--r--tests/tests.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/tests.js b/tests/tests.js
index 6c799e5..1bc4fc6 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -1,7 +1,5 @@
"use strict";
-global.WEB = false;
-
const lua = require("../src/lua.js");
const lauxlib = require("../src/lauxlib.js");
@@ -9,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);
};