From 8c8585a0bba0e05b6382f2f4f063515b5988639c Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 8 May 2017 12:48:38 +1000 Subject: src/lobject.js: Fix %% in luaO_pushvfstring passing char rather than array of chars --- src/lobject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lobject.js b/src/lobject.js index dafeb88..cea9975 100644 --- a/src/lobject.js +++ b/src/lobject.js @@ -453,7 +453,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, [char['%']]); break; default: { ldebug.luaG_runerror(L, defs.to_luastring("invalid option '%%%c' to 'lua_pushfstring'"), fmt[e + 1]); -- cgit v1.2.3-54-g00ecf