diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-13 15:13:27 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-13 15:13:27 +1100 |
commit | 3e7c102eefbaae9e6bc839b11bba79aee1c5e040 (patch) | |
tree | c811b42cc9ffb08a0bf8a93d6141324d707f4953 /src/defs.js | |
parent | d1d2a636ea67c2e30a34660eeb6c7da544646bea (diff) | |
download | fengari-3e7c102eefbaae9e6bc839b11bba79aee1c5e040.tar.gz fengari-3e7c102eefbaae9e6bc839b11bba79aee1c5e040.tar.bz2 fengari-3e7c102eefbaae9e6bc839b11bba79aee1c5e040.zip |
Introduce defs.string_of to create string from bytes
Diffstat (limited to 'src/defs.js')
-rw-r--r-- | src/defs.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/defs.js b/src/defs.js index 268e76e..27498c6 100644 --- a/src/defs.js +++ b/src/defs.js @@ -131,6 +131,8 @@ class lua_Debug { } +const string_of = Array.of; + const is_luastring = function(s) { return Array.isArray(s); }; @@ -422,6 +424,7 @@ module.exports.lua_upvalueindex = lua_upvalueindex; module.exports.thread_status = thread_status; module.exports.is_luastring = is_luastring; module.exports.luastring_cmp = luastring_cmp; +module.exports.string_of = string_of; module.exports.to_jsstring = to_jsstring; module.exports.to_luastring = to_luastring; module.exports.to_uristring = to_uristring; |