Skip to content
Permalink
Browse files

[js] Temporary workaround for a bug breaking the js build

  • Loading branch information...
pmurias committed Mar 31, 2019
1 parent 9d18728 commit 7aa72ce0965b518a6ac09ef8e3e1a29be78194cf
Showing with 8 additions and 3 deletions.
  1. +8 −3 src/Perl6/World.nqp
@@ -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;

0 comments on commit 7aa72ce

Please sign in to comment.
You can’t perform that action at this time.