From 63b6b09a6cbab4446f42b5b7a8c85e6109cac9f6 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 11 May 2017 15:37:05 +1000 Subject: src/lvm.js: Setting nil should delete from table Closes #37 --- tests/ltablib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/ltablib.js b/tests/ltablib.js index 8789f9e..e209db3 100644 --- a/tests/ltablib.js +++ b/tests/ltablib.js @@ -184,7 +184,7 @@ test('table.remove', function (t) { [...lua.lua_topointer(L, -1).strong.entries()] .filter(e => typeof e[0] === 'number') .map(e => e[1].value.value).sort(), - [1, 2, 3, 4, null, null], + [1, 2, 3, 4], "Correct element(s) on the stack" ); }); -- cgit v1.2.3-70-g09d2