summaryrefslogtreecommitdiff
path: root/src/defs.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/defs.js')
-rw-r--r--src/defs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/defs.js b/src/defs.js
index c836f07..e5ffe35 100644
--- a/src/defs.js
+++ b/src/defs.js
@@ -159,7 +159,7 @@ const is_luastring = function(s) {
/* test two lua strings for equality */
const luastring_eq = function(a, b) {
- return a === b || (a.length === b.length && a.join() === b.join());
+ return a === b || (a.length === b.length && a.toString() === b.toString());
};
const to_jsstring = function(value, from, to) {