diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-04-18 13:30:22 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-04-18 13:30:22 +0200 |
commit | 75c14fadc22366a6165f593fb1a41e2a32de4354 (patch) | |
tree | 0ed332e92689cfcffe5cbc21d660b74397dab52e /src | |
parent | 35e1ec3457c653521e8afa7cd05984309f0ba67a (diff) | |
download | fengari-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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ? |