From 9057e6fd7c36d4aa1ec8425f672d63901f041c20 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 6 Jan 2018 22:14:27 +1100 Subject: Support environments without a Uint8Array.from --- 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 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 */ -- cgit v1.2.3-54-g00ecf