diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-06 19:32:31 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-06 19:32:43 +1100 |
commit | a0fa83dc9c170542630dbc83d1732d3e7a6313e9 (patch) | |
tree | f49965560f11a43e0fcb8dbc6bae1ce9ee22cb93 /src/lobject.js | |
parent | 110636150e4b3470e21622b022bec2844d8e8b2f (diff) | |
download | fengari-a0fa83dc9c170542630dbc83d1732d3e7a6313e9.tar.gz fengari-a0fa83dc9c170542630dbc83d1732d3e7a6313e9.tar.bz2 fengari-a0fa83dc9c170542630dbc83d1732d3e7a6313e9.zip |
Expose lua.luastring_of to construct a lua 'string' from raw byte values
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 1b490f3..bd10be8 100644 --- a/src/lobject.js +++ b/src/lobject.js @@ -559,7 +559,7 @@ const luaO_pushvfstring = function(L, fmt, argp) { case char['c']: { let buff = argp[a++]; if (ljstype.lisprint(buff)) - pushstr(L, defs.string_of(buff)); + pushstr(L, defs.luastring_of(buff)); else luaO_pushfstring(L, defs.to_luastring("<\\%d>", true), buff); break; |