aboutsummaryrefslogtreecommitdiff
path: root/tests/test-suite/inprogress/coroutine.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-22 09:26:03 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-22 09:26:03 +0200
commit18271b4169631ce8f10c10c0776d9bfb40bd691f (patch)
tree1b2e12e6757651ff90687a46d538f3c1adcfda60 /tests/test-suite/inprogress/coroutine.js
parent208c92b4b3bb551db89556dbfca6cac5f6dc1661 (diff)
downloadfengari-18271b4169631ce8f10c10c0776d9bfb40bd691f.tar.gz
fengari-18271b4169631ce8f10c10c0776d9bfb40bd691f.tar.bz2
fengari-18271b4169631ce8f10c10c0776d9bfb40bd691f.zip
Fixed bad boolean handling in luaV_finishOp
Diffstat (limited to 'tests/test-suite/inprogress/coroutine.js')
-rw-r--r--tests/test-suite/inprogress/coroutine.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-suite/inprogress/coroutine.js b/tests/test-suite/inprogress/coroutine.js
index 1fe25a5..1791a32 100644
--- a/tests/test-suite/inprogress/coroutine.js
+++ b/tests/test-suite/inprogress/coroutine.js
@@ -767,6 +767,11 @@ test("[test-suite] coroutine: testing yields inside metamethods", function (t) {
assert(run(function() return "a" .. "b" .. a .. "c" .. c .. b .. "x" end,
{"concat", "concat", "concat"}) == "ab10chello12x")
+
+ assert(run(function ()
+ a.BB = print
+ return a.BB
+ end, {"nidx", "idx"}) == print)
`, L;
t.plan(2);
@@ -831,11 +836,6 @@ test("[test-suite] coroutine: tests for comparsion operators", function (t) {
run(test)
end
-
- assert(run(function ()
- a.BB = print
- return a.BB
- end, {"nidx", "idx"}) == print)
`, L;
t.plan(2);