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 --- tests/test-suite/inprogress/coroutine.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test-suite/inprogress/coroutine.js b/tests/test-suite/inprogress/coroutine.js index b026bb6..117cd2b 100644 --- a/tests/test-suite/inprogress/coroutine.js +++ b/tests/test-suite/inprogress/coroutine.js @@ -986,10 +986,7 @@ test("[test-suite] coroutine: testing yields inside line hook", function (t) { -- testing yields in line hook local co = coroutine.wrap(function () - T.sethook("setglobal X; yield 0", "l", 0) - foo() - return 10 - end) + T.sethook("setglobal X; yield 0", "l", 0); foo(); return 10 end) _G.XX = nil; _G.X = nil; co(); assert(_G.X == line) -- cgit v1.2.3-54-g00ecf