diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-12 15:03:02 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-13 15:03:54 +1100 |
commit | e438f10592077f8b5432f67ef72a8f1bfbbcdc49 (patch) | |
tree | 7755e33334b592e78bc76a20a47fb5e504fe7c74 /src/lobject.js | |
parent | c5b39b9d292c1a2178aa41c6a95367a81614eb61 (diff) | |
download | fengari-e438f10592077f8b5432f67ef72a8f1bfbbcdc49.tar.gz fengari-e438f10592077f8b5432f67ef72a8f1bfbbcdc49.tar.bz2 fengari-e438f10592077f8b5432f67ef72a8f1bfbbcdc49.zip |
src/: Use to_luastring more often instead of manually creating arrays
Diffstat (limited to 'src/lobject.js')
-rw-r--r-- | src/lobject.js | 2 |
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]); |