From 36f3247d47c1ad854fa89aabf17f6d954a6a6657 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 28 Mar 2017 13:18:13 +0200 Subject: luaO_utf8esc --- src/lauxlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lauxlib.js') diff --git a/src/lauxlib.js b/src/lauxlib.js index e3974cb..8bda842 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -437,7 +437,7 @@ if (typeof require === "function") { lf.pos += bytes; } if (bytes > 0) - return lf.binary ? toDataView(lf.buff) : new lobject.TValue(0, lf.buff).jsstring(0, bytes); // TODO: Here reading utf8 only + return lf.binary ? toDataView(lf.buff) : lobject.jsstring(lf.buff, 0, bytes); // TODO: Here reading utf8 only else return null; }; -- cgit v1.2.3-54-g00ecf