Skip to content
Permalink
Browse files

[js] Use nqp::uname on the js backend too

  • Loading branch information...
pmurias committed Jun 19, 2019
1 parent 6c02354 commit 8abfbbc48e1866ec4ce2eeb19e39e25b2ee96b4c
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/core/Kernel.pm6
@@ -35,19 +35,19 @@ class Kernel does Systemic {
}

method !uname-v {
#?if moar
#?if !jvm
nqp::atpos_s(self!uname, nqp::const::UNAME_VERSION)
#?endif
#?if !moar
#?if jvm
try shell('uname -v', :out, :!err).out.slurp(:close).chomp;
#?endif
}

method !uname-m {
#?if moar
#?if !jvm
nqp::atpos_s(self!uname, nqp::const::UNAME_MACHINE)
#?endif
#?if !moar
#?if jvm
try shell('uname -m', :out, :!err).out.slurp(:close).chomp;
#?endif
}
@@ -97,6 +97,9 @@ class Kernel does Systemic {
when 'raspbian' {
self!uname-m();
}
when 'browser' {
self!uname-m();
}
default {
self!uname-p();
}

0 comments on commit 8abfbbc

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