From 2d39bb6c673fac9bf551e139c6ff651a0bbc734b Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 25 May 2017 14:34:08 +0200 Subject: Added missing parenthesis in luaG_traceexec on yield case --- src/ldebug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ldebug.js') diff --git a/src/ldebug.js b/src/ldebug.js index afbb556..5749951 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -629,7 +629,7 @@ const luaG_traceexec = function(L) { let newline = p.lineinfo.length !== 0 ? p.lineinfo[npc] : -1; if (npc === 0 || /* call linehook when enter a new function, */ ci.l_savedpc <= L.oldpc || /* when jump back (loop), or when */ - newline !== p.lineinfo.length !== 0 ? p.lineinfo[L.oldpc - 1] : -1) /* enter a new line */ + newline !== (p.lineinfo.length !== 0 ? p.lineinfo[L.oldpc - 1] : -1)) /* enter a new line */ ldo.luaD_hook(L, defs.LUA_HOOKLINE, newline); /* call line hook */ } L.oldpc = ci.l_savedpc; -- cgit v1.2.3-54-g00ecf