aboutsummaryrefslogtreecommitdiff
path: root/bugs
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-12-27 10:58:29 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-12-27 10:58:29 -0200
commitfdecdd0cec3331605be887176f37b9c9dbcb045e (patch)
treeea5b53f305bcc1c3aeb17496831aaefb8c03ad5d /bugs
parentfabdaa37b62ee9daf2d87a1e6a587820e47a3a34 (diff)
downloadlua-fdecdd0cec3331605be887176f37b9c9dbcb045e.tar.gz
lua-fdecdd0cec3331605be887176f37b9c9dbcb045e.tar.bz2
lua-fdecdd0cec3331605be887176f37b9c9dbcb045e.zip
stand-alone interpreter shows incorrect error message when the
'message' is a coroutine (already fixed in 5.2)
Diffstat (limited to 'bugs')
-rw-r--r--bugs21
1 files changed, 21 insertions, 0 deletions
diff --git a/bugs b/bugs
index fe6b2b81..8254da03 100644
--- a/bugs
+++ b/bugs
@@ -1616,6 +1616,27 @@ lapi.c:
1616} 1616}
1617 1617
1618Bug{ 1618Bug{
1619what = [[stand-alone interpreter shows incorrect error message
1620when the "message" is a coroutine]],
1621report = [[Patrick Donnelly, on 17/12/2007]],
1622since = [[i ]],
1623example = [[> error(coroutine.create(function() end))]],
1624patch = [[
1625lua.c:
1626@@ -74,6 +74,8 @@
1627
1628
1629 static int traceback (lua_State *L) {
1630+ if (!lua_isstring(L, 1)) /* 'message' not a string? */
1631+ return 1; /* keep it intact */
1632 lua_getfield(L, LUA_GLOBALSINDEX, "debug");
1633 if (!lua_istable(L, -1)) {
1634 lua_pop(L, 1);
1635
1636]],
1637}
1638
1639Bug{
1619what = [[ ]], 1640what = [[ ]],
1620report = [[ , on ]], 1641report = [[ , on ]],
1621since = [[i ]], 1642since = [[i ]],