diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-15 15:19:45 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-29 01:15:56 +1100 |
commit | 036bb181d59364d13207225bac25b419485a3df7 (patch) | |
tree | 617cff5548db8a24a83bce5b29d6010025c597e0 /src/lobject.js | |
parent | ab1881cd9f2746ad8e75ba573be34041f95ab5a6 (diff) | |
download | fengari-036bb181d59364d13207225bac25b419485a3df7.tar.gz fengari-036bb181d59364d13207225bac25b419485a3df7.tar.bz2 fengari-036bb181d59364d13207225bac25b419485a3df7.zip |
src/: Add defs.from_userstring function to take string from api
Diffstat (limited to 'src/lobject.js')
-rw-r--r-- | src/lobject.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lobject.js b/src/lobject.js index c02bc91..1b490f3 100644 --- a/src/lobject.js +++ b/src/lobject.js @@ -547,6 +547,7 @@ const luaO_pushvfstring = function(L, fmt, argp) { let s = argp[a++]; if (s === null) s = defs.to_luastring("(null)", true); else { + s = defs.from_userstring(s); /* respect null terminator */ let i = s.indexOf(0); if (i !== -1) |