Skip to content

Commit c96ce25

Browse files
committed
Perlito5 - js - bugfix in "goto" emitter
1 parent 42aded4 commit c96ce25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

perlito5.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9909,7 +9909,7 @@ package Perlito5::AST::Apply;
99099909
$Perlito5::THROW = 1;
99109910
Perlito5::Javascript2::emit_wrap_statement_javascript2($level, $wantarray, 'throw(' . Perlito5::Javascript2::to_runtime_context($self->{'arguments'}, $level) . ')')
99119911
}, 'goto' => sub {
9912-
my $self = $_[0];
9912+
my $self = shift;
99139913
my $level = shift;
99149914
my $wantarray = shift;
99159915
$Perlito5::THROW = 1;

src5/lib/Perlito5/Javascript2/Emitter.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@ package Perlito5::AST::Apply;
21522152
);
21532153
},
21542154
'goto' => sub {
2155-
my $self = $_[0];
2155+
my $self = shift;
21562156
my $level = shift;
21572157
my $wantarray = shift;
21582158
$Perlito5::THROW = 1;

0 commit comments

Comments
 (0)