summaryrefslogtreecommitdiff
path: root/src/lstring.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-06-09 13:01:21 +1000
committerdaurnimator <quae@daurnimator.com>2017-06-09 13:01:21 +1000
commit74dd47160960b3f0faa13dd1b61b64af69fde02e (patch)
treefee2730a670c4526c1c927230765be3dce49fc95 /src/lstring.js
parent9b74a453e4a48f0c2028bc15b2c5bdaee6fcd5c7 (diff)
downloadfengari-74dd47160960b3f0faa13dd1b61b64af69fde02e.tar.gz
fengari-74dd47160960b3f0faa13dd1b61b64af69fde02e.tar.bz2
fengari-74dd47160960b3f0faa13dd1b61b64af69fde02e.zip
Add is_luastring function instead of using Array.isArray directly
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('');
};