diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-06 23:17:24 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-06 23:17:24 +1100 |
commit | 013d6acd9a22a42e4e59d0f7f1394448e98746c3 (patch) | |
tree | 78cfec267f74f972be862b061a9f03099cf600b7 /src/defs.js | |
parent | 85d59de1f56a8a1a7daa4ed6d1c68136924ff73f (diff) | |
download | fengari-013d6acd9a22a42e4e59d0f7f1394448e98746c3.tar.gz fengari-013d6acd9a22a42e4e59d0f7f1394448e98746c3.tar.bz2 fengari-013d6acd9a22a42e4e59d0f7f1394448e98746c3.zip |
src/defs: Rename luastring_cmp to luastring_eq
Diffstat (limited to 'src/defs.js')
-rw-r--r-- | src/defs.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; |