From 3813f2d43054708bab7221a5ca74a0183a2ebcaf Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 30 Mar 2017 11:58:09 +0200 Subject: 8-bit only in lstrlib --- src/ldebug.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ldebug.js') diff --git a/src/ldebug.js b/src/ldebug.js index 0fba4cb..3d66d85 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -205,7 +205,7 @@ const kname = function(p, pc, c) { } /* else no reasonable name found */ } - r.name = "?"; + r.name = [lua.char["?"]]; return r; /* no reasonable name found */ }; @@ -342,7 +342,7 @@ const funcnamefromcode = function(L, ci) { let i = p.code[pc]; /* calling instruction */ if (ci.callstatus & lstate.CIST_HOOKED) { - r.name = "?"; + r.name = [lua.char["?"]]; r.funcname = lua.to_luastring("hook"); return r; } @@ -388,7 +388,7 @@ const funcnamefromcode = function(L, ci) { return null; /* cannot find a reasonable name */ } - r.name = L.l_G.tmname[tm].jsstring(); + r.name = L.l_G.tmname[tm]; r.funcname = lua.to_luastring("metamethod"); return r; }; -- cgit v1.2.3-54-g00ecf