aboutsummaryrefslogtreecommitdiff
path: root/tests/test-suite
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-suite')
-rw-r--r--tests/test-suite/events.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-suite/events.js b/tests/test-suite/events.js
index 64e8056..40dc30d 100644
--- a/tests/test-suite/events.js
+++ b/tests/test-suite/events.js
@@ -2,6 +2,8 @@
const test = require('tape');
+global.WEB = false;
+
const lauxlib = require("../../src/lauxlib.js");
const lua = require('../../src/lua.js');
@@ -59,7 +61,7 @@ test("[test-suite] events: testing metatable", function (t) {
setmetatable(t, t) -- causes a bug in 5.1 !
t.__newindex = f
a[1] = 30; a.x = "101"; a[5] = 200
- -- assert(a[1] == 27 and a.x == 98 and a[5] == 197)
+ assert(a[1] == 27 and a.x == 98 and a[5] == 197)
`, L;
t.plan(2);
@@ -80,4 +82,4 @@ test("[test-suite] events: testing metatable", function (t) {
}, "Lua program ran without error");
-}); \ No newline at end of file
+});