From 013d6acd9a22a42e4e59d0f7f1394448e98746c3 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 6 Jan 2018 23:17:24 +1100 Subject: src/defs: Rename luastring_cmp to luastring_eq --- src/defs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/defs.js') diff --git a/src/defs.js b/src/defs.js index 0c4ccd8..c836f07 100644 --- a/src/defs.js +++ b/src/defs.js @@ -158,7 +158,7 @@ const is_luastring = function(s) { }; /* test two lua strings for equality */ -const luastring_cmp = function(a, b) { +const luastring_eq = function(a, b) { return a === b || (a.length === b.length && a.join() === b.join()); }; @@ -462,7 +462,7 @@ module.exports.lua_Debug = lua_Debug; 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.luastring_eq = luastring_eq; module.exports.luastring_from = luastring_from; module.exports.luastring_of = luastring_of; module.exports.to_jsstring = to_jsstring; -- cgit v1.2.3-54-g00ecf