From 75c14fadc22366a6165f593fb1a41e2a32de4354 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 18 Apr 2017 13:30:22 +0200 Subject: Fixed table comparison (was comparing TValue instead of values) --- src/lvm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lvm.js b/src/lvm.js index 55daa91..4c43da5 100644 --- a/src/lvm.js +++ b/src/lvm.js @@ -799,7 +799,7 @@ const luaV_equalobj = function(L, t1, t2) { case CT.LUA_TLIGHTUSERDATA: case CT.LUA_TUSERDATA: case CT.LUA_TTABLE: - if (t1 === t2) return 1; + if (t1.value === t2.value) return 1; else if (L === null) return 0; // TODO: fasttm ? -- cgit v1.2.3-70-g09d2