aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-03-15 18:09:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-03-15 18:09:55 -0300
commit8e1f25e3f80bbefbbd1e3de20caf255b95b4d9d6 (patch)
tree57d5f2fd691131200168cc63baf6287e16cb51f6
parent48a8d781020ec86e9870cdca2f5276b30cd20fa4 (diff)
downloadlua-8e1f25e3f80bbefbbd1e3de20caf255b95b4d9d6.tar.gz
lua-8e1f25e3f80bbefbbd1e3de20caf255b95b4d9d6.tar.bz2
lua-8e1f25e3f80bbefbbd1e3de20caf255b95b4d9d6.zip
bug in `dofile'
-rw-r--r--bugs38
1 files changed, 34 insertions, 4 deletions
diff --git a/bugs b/bugs
index fcd27215..59af0765 100644
--- a/bugs
+++ b/bugs
@@ -450,11 +450,17 @@ pcall(co)
450report = [[Nick Trout, 07/07/2003]], 450report = [[Nick Trout, 07/07/2003]],
451patch = [[ 451patch = [[
452* lvm.c: 452* lvm.c:
453402d401 453402,403c402,403
454< L->ci->u.l.pc = &pc; 454< L->ci->u.l.pc = &pc;
455405a405 455< if (L->hookmask & LUA_MASKCALL)
456---
457> if (L->hookmask & LUA_MASKCALL) {
458> L->ci->u.l.pc = &pc;
459404a405
460> }
461405a407
456> L->ci->u.l.pc = &pc; 462> L->ci->u.l.pc = &pc;
457676,678c676 463676,678c678
458< lua_assert(ci->u.l.pc == &pc && 464< lua_assert(ci->u.l.pc == &pc &&
459< ttisfunction(ci->base - 1) && 465< ttisfunction(ci->base - 1) &&
460< (ci->state & CI_SAVEDPC)); 466< (ci->state & CI_SAVEDPC));
@@ -579,7 +585,7 @@ patch = [[
579} 585}
580 586
581 587
582Bugs = { 588Bug{
583 589
584what = [[count hook may be called without being set]], 590what = [[count hook may be called without being set]],
585 591
@@ -603,3 +609,27 @@ patch = [[
603]], 609]],
604 610
605} 611}
612
613
614Bug{
615
616what = [[`dofile' eats one return value when called without arguments]],
617
618report = [[Frederico Abraham, 15/01/2004]],
619
620example = [[
621a,b = dofile() --< here you enter `return 1,2,3 <eof>'
622print(a,b) --> 2 3 (should be 1 and 2)
623]],
624
625patch = [[
626* lbaselib.c:
627313a314
628> int n = lua_gettop(L);
629317c318
630< return lua_gettop(L) - 1;
631---
632> return lua_gettop(L) - n;
633]],
634
635}