diff options
author | daurnimator <quae@daurnimator.com> | 2018-03-04 19:15:42 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-03-04 19:15:42 +1100 |
commit | 1f5f050ada93ccda9323209e2a7b29851392404e (patch) | |
tree | 4c3394f4d35a7ef074e87dd2d81271cbf75238ba /src/lapi.js | |
parent | 96f85158be4829f3cc0b9ee09442e26486cee7b2 (diff) | |
download | fengari-1f5f050ada93ccda9323209e2a7b29851392404e.tar.gz fengari-1f5f050ada93ccda9323209e2a7b29851392404e.tar.bz2 fengari-1f5f050ada93ccda9323209e2a7b29851392404e.zip |
src/lapi.js: Remove lua_toljsstring
It doesn't return length as a seperate thing: js strings implicitly have a length already
Diffstat (limited to 'src/lapi.js')
-rw-r--r-- | src/lapi.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lapi.js b/src/lapi.js index 369a64b..21b6c0d 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -680,7 +680,7 @@ const lua_tolstring = function(L, idx) { const lua_tostring = lua_tolstring; -const lua_toljsstring = function(L, idx) { +const lua_tojsstring = function(L, idx) { let o = index2addr(L, idx); if (!o.ttisstring()) { @@ -692,8 +692,6 @@ const lua_toljsstring = function(L, idx) { return o.jsstring(); }; -const lua_tojsstring = lua_toljsstring; - const lua_todataview = function(L, idx) { let u8 = lua_tolstring(L, idx); return new DataView(u8.buffer, u8.byteOffset, u8.byteLength); @@ -1228,7 +1226,6 @@ module.exports.lua_todataview = lua_todataview; module.exports.lua_tointeger = lua_tointeger; module.exports.lua_tointegerx = lua_tointegerx; module.exports.lua_tojsstring = lua_tojsstring; -module.exports.lua_toljsstring = lua_toljsstring; module.exports.lua_tolstring = lua_tolstring; module.exports.lua_tonumber = lua_tonumber; module.exports.lua_tonumberx = lua_tonumberx; |