summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-08 12:48:38 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-08 12:48:46 +1000
commit8c8585a0bba0e05b6382f2f4f063515b5988639c (patch)
treee86b33aea6df57b9c6b6d62a553a05d83fb7f84b /src
parent431b4f5e896905244a3e101b9092101ffd5ba274 (diff)
downloadfengari-8c8585a0bba0e05b6382f2f4f063515b5988639c.tar.gz
fengari-8c8585a0bba0e05b6382f2f4f063515b5988639c.tar.bz2
fengari-8c8585a0bba0e05b6382f2f4f063515b5988639c.zip
src/lobject.js: Fix %% in luaO_pushvfstring passing char rather than array of chars
Diffstat (limited to 'src')
-rw-r--r--src/lobject.js2
1 files changed, 1 insertions, 1 deletions
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]);