Skip Menu |

This queue is for tickets about the JavaScript-Dumper CPAN distribution.

Report information
The Basics
Id: 95230
Status: open
Priority: 0/
Queue: JavaScript-Dumper

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.011
Fixed in: (no value)



Subject: Bleadperl v5.19.0-570-gb127e37 breaks PERLER/JavaScript-Dumper-0.011.tar.gz
See https://rt.perl.org/Ticket/Display.html?id=121013 for details. Regards, Slaven
From: khw [...] cpan.org
On Thu May 01 04:58:14 2014, SREZIC wrote: Show quoted text
> See https://rt.perl.org/Ticket/Display.html?id=121013 for details. > > Regards, > Slaven
The attached patch should resolve this bug
Subject: JavaScript::Dumper.patch
--- 01-dump.t.bak 2014-04-03 12:42:25.391852257 -0600 +++ 01-dump.t 2014-04-03 12:45:29.783856901 -0600 @@ -26,7 +26,14 @@ like( $js, qr/"var6":true/ ); like( $js, qr/"var7":null/ ); like( $js, qr/"var8":"00"/ ); -like( $js, qr/"var9":"0.001"/ ); + +# Starting here, this remains numeric +if (! defined $^V || $^V lt v5.19.0) { + like( $js, qr/"var9":"0.001"/ ); +} +else { + like( $js, qr/"var9":0.001/ ); +} like( $js, qr/^\{.*\}$/ ); diag("Testing for correct Dumping");