diff options
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; |