Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let-localized variable doesn't restore value when block exited by exception #3369

Open
p6rt opened this issue Apr 13, 2014 · 2 comments
Open

let-localized variable doesn't restore value when block exited by exception #3369

p6rt opened this issue Apr 13, 2014 · 2 comments
Labels
JVM

Comments

@p6rt
Copy link

@p6rt p6rt commented Apr 13, 2014

Migrated from rt.perl.org#121647 (status was 'open')

Searchable as RT121647$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Apr 13, 2014

From @moritz

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.

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented May 12, 2016

@coke - Status changed from 'new' to 'open'

@p6rt p6rt added the JVM label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.