Package: release.debian.org Severity: normal Tags: buster User: release.debian....@packages.debian.org Usertags: pu
Hi all, libjavascript-beautifier-perl don't understand Javascript ES6 "=>" operator (#931379). This very simple patch fixes the problem (just adding "=>" in operators list). Cheers, Xavier
diff --git a/debian/changelog b/debian/changelog index d53fc65..531e69b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libjavascript-beautifier-perl (0.25-1+deb10u1) unstable; urgency=medium + + * Add missing "=>" operator (ES6) (Closes: #931379) + + -- Xavier Guimard <y...@debian.org> Wed, 03 Jul 2019 18:40:37 +0200 + libjavascript-beautifier-perl (0.25-1) unstable; urgency=medium * Import upstream version 0.25. diff --git a/debian/patches/missing-operator.patch b/debian/patches/missing-operator.patch new file mode 100644 index 0000000..54f0167 --- /dev/null +++ b/debian/patches/missing-operator.patch @@ -0,0 +1,18 @@ +Description: Add missing ES6 "=>" operator +Author: Xavier Guimard <y...@debian.org> +Bug: https://rt.cpan.org/Ticket/Display.html?id=129976 +Bug-Debian: https://bugs.debian.org/931379 +Forwarded: https://rt.cpan.org/Ticket/Display.html?id=129976 +Last-Update: 2019-07-03 + +--- a/lib/JavaScript/Beautifier.pm ++++ b/lib/JavaScript/Beautifier.pm +@@ -18,7 +18,7 @@ + my @wordchar = split('', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$'); + my @digits = split('', '0123456789'); + # <!-- is a special case (ok, it's a minor hack actually) +-my @punct = split(' ', '+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! !! , : ? ^ ^= |= ::'); ++my @punct = split(' ', '+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= => >> << >>> >>>= >>= <<= && &= | || ! !! , : ? ^ ^= |= ::'); + # words which should always start on new line. + my @line_starter = split(',', 'continue,try,throw,return,var,if,switch,case,default,for,while,break,function'); + diff --git a/debian/patches/series b/debian/patches/series index bbc4133..73f2145 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ remove-pl-extension.patch +missing-operator.patch