Skip to content

Commit

Permalink
[js] Don't choose the multi variant in the optimizer because it's buggy
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Sep 20, 2017
1 parent c5383a1 commit 1f9fcad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Optimizer.nqp
Expand Up @@ -2198,7 +2198,7 @@ class Perl6::Optimizer {
# we may be passing.
method call_ct_chosen_multi($call, $proto, $chosen) {
self.simplify_refs($call, $chosen.signature);
if nqp::getcomp('perl6').backend.name ne 'moar' {
if nqp::getcomp('perl6').backend.name eq 'jvm' {
my @cands := $proto.dispatchees();
my int $idx := 0;
for @cands {
Expand Down

0 comments on commit 1f9fcad

Please sign in to comment.