Skip to content

Commit

Permalink
[js] [jvm] Conditionally disable code that depends on stuff that moar…
Browse files Browse the repository at this point in the history
… only for now
  • Loading branch information
pmurias committed Sep 7, 2017
1 parent 4ad1ac2 commit 9cdd8b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Kernel.pm
Expand Up @@ -148,6 +148,7 @@ class Kernel does Systemic {
has $!signals-by-Str-setup = False;

proto method signal (|) { * }
#?if moar
multi method signal(Kernel:D: Str:D $signal --> Int:D) {
unless $!signals-by-Str-setup {
$!signals-setup-lock.protect: {
Expand All @@ -165,6 +166,7 @@ class Kernel does Systemic {
}
%!signals-by-Str{$signal} // %!signals-by-Str{"SIG$signal"} // Int;
}
#?endif

multi method signal(Kernel:D: Signal:D \signal --> Int:D) { signal.value }
multi method signal(Kernel:D: Int:D \signal --> Int:D) { signal }
Expand Down

0 comments on commit 9cdd8b3

Please sign in to comment.