From 50323a75a96cfa095c1f968dd001b0f7107a722b Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 21 May 2017 22:48:29 +1000 Subject: src/lbaselib.js: Implement argument checking in collectgarbage --- tests/test-suite/events.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test-suite/events.js') diff --git a/tests/test-suite/events.js b/tests/test-suite/events.js index 14391f2..d5ed5ae 100644 --- a/tests/test-suite/events.js +++ b/tests/test-suite/events.js @@ -17,7 +17,7 @@ test("[test-suite] events: testing metatable", function (t) { _ENV = setmetatable({}, {__index=_G}) - collectgarbage() + --collectgarbage() X = X+10 assert(X == 30 and _G.X == 20) @@ -57,7 +57,7 @@ test("[test-suite] events: testing metatable", function (t) { a.parent = {z=25, x=12, [4] = 24} assert(a[1] == 10 and a.z == 28 and a[4] == 27 and a.x == "10") - collectgarbage() + --collectgarbage() a = setmetatable({}, t) function f(t, i, v) rawset(t, i, v-3) end @@ -244,7 +244,7 @@ test("[test-suite] events: test comparison", function (t) { let luaCode = ` t = {} t.__lt = function (a,b,c) - collectgarbage() + --collectgarbage() assert(c == nil) if type(a) == 'table' then a = a.x end if type(b) == 'table' then b = b.x end -- cgit v1.2.3-54-g00ecf