From 1cd5b00d25478b35deba1329d95a342062c51d4c Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 20 Apr 2018 22:19:16 +1000 Subject: src/l*lib.js: Remove some uses of caching to_luastring --- src/lutf8lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lutf8lib.js') 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; -- cgit v1.2.3-54-g00ecf