aboutsummaryrefslogtreecommitdiff
path: root/bugs
diff options
context:
space:
mode:
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 ]],