Skip to content

Commit 041913b

Browse files
committed
Update sync_pp
1 parent b2d0ae8 commit 041913b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

author/bin/sync_pp.pl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,12 @@
108108
[$1\nplan skip_all => "not for older version of JSON::PP" if JSON->backend->isa('JSON::PP') && JSON->backend->VERSION < 4.09;]s;
109109
$content =~ s|my \$coder = JSON->new;|my \$coder = JSON->new->allow_nonref(1);|g;
110110
}
111+
if ($basename eq '03_types.t') {
112+
$content =~ s|JSON\->can\("CORE_BOOL"\) && JSON::CORE_BOOL\(\)|JSON->backend->can("CORE_BOOL") && JSON->backend->CORE_BOOL|g;
113+
}
111114
if ($basename eq 'core_bools.t') {
112-
$content =~ s|JSON->CORE_BOOL|JSON->backend->can('CORE_BOOL') && JSON->backend->CORE_BOOL|g;
115+
$content =~ s|JSON->can\('CORE_BOOL'\)|JSON->backend->can('CORE_BOOL')|g;
116+
$content =~ s|JSON::CORE_BOOL|JSON->backend->CORE_BOOL|g;
113117
}
114118

115119
$json_test->spew($content);

0 commit comments

Comments
 (0)