diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-06 23:19:42 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-06 23:19:42 +1100 |
commit | 3660168cb4920422b6bf131efc7f0687efc2d4cf (patch) | |
tree | 335d4321fbcf695353b63f996c0e92e099b16325 /src/lstring.js | |
parent | 013d6acd9a22a42e4e59d0f7f1394448e98746c3 (diff) | |
download | fengari-3660168cb4920422b6bf131efc7f0687efc2d4cf.tar.gz fengari-3660168cb4920422b6bf131efc7f0687efc2d4cf.tar.bz2 fengari-3660168cb4920422b6bf131efc7f0687efc2d4cf.zip |
Use Uint8Array.prototype.toString instead of .join (IE compat)
Diffstat (limited to 'src/lstring.js')
-rw-r--r-- | src/lstring.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |