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/defs.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/defs.js')
| -rw-r--r-- | src/defs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/defs.js b/src/defs.js index c836f07..e5ffe35 100644 --- a/src/defs.js +++ b/src/defs.js @@ -159,7 +159,7 @@ const is_luastring = function(s) { /* test two lua strings for equality */ const luastring_eq = function(a, b) { - return a === b || (a.length === b.length && a.join() === b.join()); + return a === b || (a.length === b.length && a.toString() === b.toString()); }; const to_jsstring = function(value, from, to) { |
