summaryrefslogtreecommitdiff
path: root/src/lstring.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-06 22:14:27 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-06 22:14:27 +1100
commit9057e6fd7c36d4aa1ec8425f672d63901f041c20 (patch)
treeddcc4fb38ae04f70edd7fa80de0ffe6030064e33 /src/lstring.js
parent28f5e1052c7ee7fb15585621bd7c32ce72c02a82 (diff)
downloadfengari-9057e6fd7c36d4aa1ec8425f672d63901f041c20.tar.gz
fengari-9057e6fd7c36d4aa1ec8425f672d63901f041c20.tar.bz2
fengari-9057e6fd7c36d4aa1ec8425f672d63901f041c20.zip
Support environments without a Uint8Array.from
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 c8da56a..4350165 100644
--- a/src/lstring.js
+++ b/src/lstring.js
@@ -50,7 +50,7 @@ const luaS_bless = function(L, str) {
/* makes a copy */
const luaS_new = function(L, str) {
- return luaS_bless(L, Uint8Array.from(str));
+ return luaS_bless(L, defs.luastring_from(str));
};
/* takes a js string */