aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-18 13:30:22 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-18 13:30:22 +0200
commit75c14fadc22366a6165f593fb1a41e2a32de4354 (patch)
tree0ed332e92689cfcffe5cbc21d660b74397dab52e /src
parent35e1ec3457c653521e8afa7cd05984309f0ba67a (diff)
downloadfengari-75c14fadc22366a6165f593fb1a41e2a32de4354.tar.gz
fengari-75c14fadc22366a6165f593fb1a41e2a32de4354.tar.bz2
fengari-75c14fadc22366a6165f593fb1a41e2a32de4354.zip
Fixed table comparison (was comparing TValue instead of values)
Diffstat (limited to 'src')
-rw-r--r--src/lvm.js2
1 files changed, 1 insertions, 1 deletions
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 ?