1 parent 4d7048b commit 7836183Copy full SHA for 7836183
1 file changed
t/e02_bool.t
@@ -20,6 +20,7 @@ my $not_not_a_number_is_a_number = (
20
21
my $core_bool_support = JSON->backend->can("CORE_BOOL") && JSON->backend->CORE_BOOL ? 1 : 0;
22
$core_bool_support = 1 if $json->backend->isa('Cpanel::JSON::XS') && $json->backend->VERSION >= version->parse(4.38);
23
+$core_bool_support = 0 unless defined &builtin::is_bool;
24
25
is($json->encode([!1]), $core_bool_support ? '[false]' : '[""]');
26
if ($not_not_a_number_is_a_number) {
0 commit comments