From e438f10592077f8b5432f67ef72a8f1bfbbcdc49 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 12 Dec 2017 15:03:02 +1100 Subject: src/: Use to_luastring more often instead of manually creating arrays --- src/lobject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lobject.js') diff --git a/src/lobject.js b/src/lobject.js index d816323..a67147a 100644 --- a/src/lobject.js +++ b/src/lobject.js @@ -600,7 +600,7 @@ const luaO_pushvfstring = function(L, fmt, argp) { pushstr(L, defs.to_luastring(String.fromCodePoint(argp[a++]))); break; case char['%']: - pushstr(L, [char['%']]); + pushstr(L, defs.to_luastring("%", true)); break; default: ldebug.luaG_runerror(L, defs.to_luastring("invalid option '%%%c' to 'lua_pushfstring'"), fmt[e + 1]); -- cgit v1.2.3-54-g00ecf