From 74dd47160960b3f0faa13dd1b61b64af69fde02e Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 9 Jun 2017 13:01:21 +1000 Subject: Add is_luastring function instead of using Array.isArray directly --- src/lstring.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lstring.js') 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(''); }; -- cgit v1.2.3-54-g00ecf