diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-03-24 17:10:22 +0100 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-03-24 17:10:22 +0100 |
commit | 6f42ac9cce2ded1f62cf967f42c85b1171678fa1 (patch) | |
tree | 3642de0cfb5d95bdd2f4223354e35972de6720f8 /src | |
parent | 8871373cea55df0374ed0d4da9cd21f2fb08fe09 (diff) | |
download | fengari-6f42ac9cce2ded1f62cf967f42c85b1171678fa1.tar.gz fengari-6f42ac9cce2ded1f62cf967f42c85b1171678fa1.tar.bz2 fengari-6f42ac9cce2ded1f62cf967f42c85b1171678fa1.zip |
Added missing sprintf
Diffstat (limited to 'src')
-rw-r--r-- | src/lstrlib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js index 1294baa..2e623b6 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -366,7 +366,7 @@ const str_format = function(L) { concat(b, s); /* keep entire string */ lapi.lua_pop(L, 1); /* remove result from 'luaL_tolstring' */ } else { /* format the string into 'buff' */ - concat(b, s); + concat(b, lua.to_luastring(sprintf(String.fromCharCode(...form), str.jsstring()))); lapi.lua_pop(L, 1); /* remove result from 'luaL_tolstring' */ } } |