Skip Menu |
Report information
Id: 121647
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: moritz <moritz.lenz+perl [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: JVM



From: Moritz Lenz <moritz [...] faui2k3.org>
Subject: let-localized variable doesn't restore value when block exited by exception (JVM only)
To: rakudobug [...] perl.org
Date: Sun, 13 Apr 2014 20:39:00 +0200
Download (untitled) / with headers
text/plain 335b
rakudo-jvm fails the second test in this block: { my $a = 42; try { is((let $a = 23; $a), 23, "let() changed the variable in a try block"); die 57; }; is $a, 42, "let() restored the variable, the block was exited using an exception"; } (taken from S04-blocks-and-statements/let.t) the other backends pass this test.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org