Skip to content

Commit

Permalink
Perlito5 - js - goto fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fglock committed Oct 21, 2013
1 parent 87aa50b commit e1a3c3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion html/perlito5.js
Original file line number Diff line number Diff line change
Expand Up @@ -13713,7 +13713,7 @@ return (p5call(p5pkg["Perlito5::AST::Apply"]["v__"], "emit_javascript2_set_list"
var v_wantarray;
v_wantarray = (List__.shift());
p5make_package("Perlito5")["v_THROW"] = (1);
return (p5pkg["Perlito5::Javascript2"].emit_wrap_statement_javascript2([v_wantarray, ('throw((' + p5str(p5call((v_self || (v_self = new p5HashRef({})))._hash_.p5hget_array('arguments')._array_.p5aget(0), "emit_javascript2", [], 0)) + ')([List__, p5want]))')], p5want));
return (p5pkg["Perlito5::Javascript2"].emit_wrap_statement_javascript2([v_wantarray, ('throw(' + p5str(p5call((v_self || (v_self = new p5HashRef({})))._hash_.p5hget_array('arguments')._array_.p5aget(0), "emit_javascript2", [], 0)) + ')')], p5want));
}, null), 'do', p5sub(function (List__, p5want) {
var v_self;
v_self = (List__.shift());
Expand Down
2 changes: 1 addition & 1 deletion perlito5.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9588,7 +9588,7 @@ package Perlito5::AST::Apply;
my $level = shift;
my $wantarray = shift;
$Perlito5::THROW = 1;
Perlito5::Javascript2::emit_wrap_statement_javascript2($wantarray, 'throw((' . $self->{'arguments'}->[0]->emit_javascript2() . ')([List__, p5want]))')
Perlito5::Javascript2::emit_wrap_statement_javascript2($wantarray, 'throw(' . $self->{'arguments'}->[0]->emit_javascript2() . ')')
}, 'do' => sub {
my $self = shift;
my $level = shift;
Expand Down
2 changes: 1 addition & 1 deletion src5/lib/Perlito5/Javascript2/Emitter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ package Perlito5::AST::Apply;
$Perlito5::THROW = 1;
Perlito5::Javascript2::emit_wrap_statement_javascript2(
$wantarray,
'throw((' . $self->{arguments}->[0]->emit_javascript2() . ')([List__, p5want]))'
'throw(' . $self->{arguments}->[0]->emit_javascript2() . ')'
);
},

Expand Down

0 comments on commit e1a3c3f

Please sign in to comment.