summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js2
1 files changed, 1 insertions, 1 deletions
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]);