aboutsummaryrefslogtreecommitdiff
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 a5ee669..185582b 100644
--- a/src/lstring.js
+++ b/src/lstring.js
@@ -30,7 +30,7 @@ const luaS_eqlngstr = function(a, b) {
/* converts strings (arrays) to a consistent map key
make sure this doesn't conflict with any of the anti-collision strategies in ltable */
const luaS_hash = function(str) {
- assert(Array.isArray(str));
+ assert(defs.is_luastring(str));
return str.map(e => `${e}|`).join('');
};