From 0d77f3223837941ecd0a4d06a2ffcdf11910859d Mon Sep 17 00:00:00 2001 From: pmurias Date: Thu, 22 Mar 2018 11:01:05 +0100 Subject: [PATCH] [js] Enable use of nqp::encoderepconf op --- src/core/Encoding/Encoder/Builtin.pm6 | 6 +++--- tools/build/NQP_REVISION | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/Encoding/Encoder/Builtin.pm6 b/src/core/Encoding/Encoder/Builtin.pm6 index 1c33cb3314f..c07a5d063fd 100644 --- a/src/core/Encoding/Encoder/Builtin.pm6 +++ b/src/core/Encoding/Encoder/Builtin.pm6 @@ -12,7 +12,7 @@ my class Encoding::Encoder::Builtin does Encoding::Encoder { $!type := nqp::can($type.HOW, 'pun') ?? $type.^pun !! $type.WHAT; $!replacement = $replacement.defined ?? $replacement !! nqp::null_s(); $!config = $strict ?? 0 !! 1; -#?if !moar +#?if jvm X::NYI.new(feature => 'encoding with replacement').throw if $replacement.defined; X::NYI.new(feature => 'encoding with strict').throw if $strict; #?endif @@ -20,14 +20,14 @@ my class Encoding::Encoder::Builtin does Encoding::Encoder { } method encode-chars(str $str --> Blob:D) { -#?if moar +#?if !jvm nqp::encoderepconf($str, $!encoding, $!replacement, nqp::create($!type), $!config) #?endif -#?if !moar +#?if jvm nqp::encode($str, $!encoding, nqp::create($!type)); #?endif diff --git a/tools/build/NQP_REVISION b/tools/build/NQP_REVISION index f46779172f9..4bf5c116764 100644 --- a/tools/build/NQP_REVISION +++ b/tools/build/NQP_REVISION @@ -1 +1 @@ -2018.03-10-gb5f9716df +2018.03-14-g02a2378f3