aboutsummaryrefslogtreecommitdiff
path: root/src/lutf8lib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-20 22:19:16 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-20 22:19:16 +1000
commit1cd5b00d25478b35deba1329d95a342062c51d4c (patch)
treed0a3c3233b2dbfc76a24638b673048eab9c0e2e1 /src/lutf8lib.js
parent6934a870564f8fd2d5cd7df3446e293d070c9a9e (diff)
downloadfengari-1cd5b00d25478b35deba1329d95a342062c51d4c.tar.gz
fengari-1cd5b00d25478b35deba1329d95a342062c51d4c.tar.bz2
fengari-1cd5b00d25478b35deba1329d95a342062c51d4c.zip
src/l*lib.js: Remove some uses of caching to_luastring
Diffstat (limited to 'src/lutf8lib.js')
-rw-r--r--src/lutf8lib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lutf8lib.js b/src/lutf8lib.js
index 34d1365..d3dc3a2 100644
--- a/src/lutf8lib.js
+++ b/src/lutf8lib.js
@@ -219,7 +219,7 @@ const iter_aux = function(L) {
else {
let dec = utf8_decode(s, n);
if (dec === null || iscont(s[dec.pos]))
- return luaL_error(L, to_luastring("invalid UTF-8 code", true));
+ return luaL_error(L, to_luastring("invalid UTF-8 code"));
lua_pushinteger(L, n + 1);
lua_pushinteger(L, dec.code);
return 2;