From f999c75b3ab32f0011ed99fd8c65465c0d239c12 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 21 May 2017 22:31:03 +1000 Subject: src/ldebug.js: compare same string types --- src/ldebug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ldebug.js b/src/ldebug.js index 13b9da7..47f32f6 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -399,7 +399,7 @@ const getobjname = function(p, lastpc, reg) { let t = i.B; /* table index */ let vn = op === 'OP_GETTABLE' ? lfunc.luaF_getlocalname(p, t + 1, pc) : upvalname(p, t); r.name = kname(p, pc, k).name; - r.funcname = vn && vn === "_ENV" ? defs.to_luastring("global", true) : defs.to_luastring("field", true); + r.funcname = vn && defs.to_jsstring(vn) === "_ENV" ? defs.to_luastring("global", true) : defs.to_luastring("field", true); return r; } case 'OP_GETUPVAL': { -- cgit v1.2.3-70-g09d2