Skip to content
Browse files

[Core] don't return values from Parrot.try_report, it cases problems …

…because p and n might not get set if the routine errors out
  • Loading branch information...
1 parent 01d6f0c commit 9c48367630c9bf788ce49b9d7b1a0e915452b4ba @Whiteknight committed Sep 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/Parrot.winxed
View
6 src/core/Parrot.winxed
@@ -61,16 +61,16 @@ namespace Rosella.Parrot
var p;
var n;
try {
- :(p [slurpy], n [slurpy,named]) = sub();
+ /*:(p [slurpy], n [slurpy,named]) = */sub();
} catch (e) {
var fmt = Rosella.Parrot.exception_formatter();
- handle.print(fmt.format_default(e));
+ out.print(fmt.format_default(e));
}
if (handles != null)
Rosella.IO.swap_handles(handles);
- return p:[flat], n:[flat,named];
+ /*return p:[flat], n:[flat,named];*/
}
// private routine. Format backtrace information into an array of

0 comments on commit 9c48367

Please sign in to comment.
Something went wrong with that request. Please try again.