From 3660168cb4920422b6bf131efc7f0687efc2d4cf Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 6 Jan 2018 23:19:42 +1100 Subject: Use Uint8Array.prototype.toString instead of .join (IE compat) --- 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 c145b53..84754f0 100644 --- a/src/lstring.js +++ b/src/lstring.js @@ -31,7 +31,7 @@ const luaS_eqlngstr = function(a, b) { make sure this doesn't conflict with any of the anti-collision strategies in ltable */ const luaS_hash = function(str) { assert(defs.is_luastring(str)); - return '|'+str.join('|'); + return '|'+str.toString(); }; const luaS_hashlongstr = function(ts) { -- cgit v1.2.3-54-g00ecf