Skip to content
Permalink
Browse files

[js] For now treat int64/uint64 arrays as int ones

  • Loading branch information...
pmurias committed Oct 23, 2018
1 parent 32b7c08 commit f35dd301f34415c04737908a21c3e6c4af98a0b2
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/native_array.pm6
@@ -3228,6 +3228,11 @@ my class array does Iterable {
elsif $kind == 3 {
$what := arr.^mixin(strarray[$t]);
}
#?if js
elsif $kind == 4 || $kind == 5 {
$what := arr.^mixin(intarray[$t]);
}
#?endif
else {
return "Can only parameterize array with a native type, not {t.^name}";
}

0 comments on commit f35dd30

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