summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-03-28 13:18:13 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-03-28 13:53:19 +0200
commit36f3247d47c1ad854fa89aabf17f6d954a6a6657 (patch)
tree20d48d5d73aa81f86998c33d439b1d45bf1ea510 /src/lauxlib.js
parentca46ad67f398f219cf838feb10127cd0cecc72d8 (diff)
downloadfengari-36f3247d47c1ad854fa89aabf17f6d954a6a6657.tar.gz
fengari-36f3247d47c1ad854fa89aabf17f6d954a6a6657.tar.bz2
fengari-36f3247d47c1ad854fa89aabf17f6d954a6a6657.zip
luaO_utf8esc
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r--src/lauxlib.js2
1 files changed, 1 insertions, 1 deletions
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;
};