Skip to content

Commit

Permalink
[js] Temporary workaround for a bug breaking the js build
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Mar 31, 2019
1 parent 9d18728 commit 7aa72ce
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Perl6/World.nqp
Expand Up @@ -2472,10 +2472,15 @@ class Perl6::World is HLL::World {
unless $precomp {
$compiler_thunk();
}
my $code_obj := nqp::getcodeobj(nqp::curcode());
unless nqp::isnull($code_obj) {
return $code_obj(|@pos, |%named);

unless nqp::getcomp('perl6').backend.name eq 'js' {
# Temporarly disabled for js untill we figure the bug out
my $code_obj := nqp::getcodeobj(nqp::curcode());
unless nqp::isnull($code_obj) {
return $code_obj(|@pos, |%named);
}
}

$precomp(|@pos, |%named);
});
@compstuff[1] := $compiler_thunk;
Expand Down

0 comments on commit 7aa72ce

Please sign in to comment.