summaryrefslogtreecommitdiff
path: root/src/lstring.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lstring.js')
-rw-r--r--src/lstring.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstring.js b/src/lstring.js
index 185582b..c85e5b2 100644
--- a/src/lstring.js
+++ b/src/lstring.js
@@ -24,7 +24,7 @@ class TString {
const luaS_eqlngstr = function(a, b) {
assert(a instanceof TString);
assert(b instanceof TString);
- return a == b || (a.realstring.length == b.realstring.length && a.realstring.join() == b.realstring.join());
+ return a == b || defs.luastring_cmp(a.realstring, b.realstring);
};
/* converts strings (arrays) to a consistent map key