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/ldebug.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ldebug.js') diff --git a/src/ldebug.js b/src/ldebug.js index 1bb7a8a..3d722e1 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -403,7 +403,7 @@ const getobjname = function(p, lastpc, reg) { let t = i.B; /* table index */ let vn = i.opcode === OCi.OP_GETTABLE ? lfunc.luaF_getlocalname(p, t + 1, pc) : upvalname(p, t); r.name = kname(p, pc, k).name; - r.funcname = (vn && defs.luastring_cmp(vn, llex.LUA_ENV)) ? defs.to_luastring("global", true) : defs.to_luastring("field", true); + r.funcname = (vn && defs.luastring_eq(vn, llex.LUA_ENV)) ? defs.to_luastring("global", true) : defs.to_luastring("field", true); return r; } case OCi.OP_GETUPVAL: { @@ -567,7 +567,7 @@ const luaG_opinterror = function(L, p1, p2, msg) { const luaG_ordererror = function(L, p1, p2) { let t1 = ltm.luaT_objtypename(L, p1); let t2 = ltm.luaT_objtypename(L, p2); - if (defs.luastring_cmp(t1, t2)) + if (defs.luastring_eq(t1, t2)) luaG_runerror(L, defs.to_luastring("attempt to compare two %s values", true), t1); else luaG_runerror(L, defs.to_luastring("attempt to compare %s with %s", true), t1, t2); -- cgit v1.2.3-54-g00ecf