[Pkg-javascript-devel] Bug#928827: Bug#928827: libjs-jquery: Minified version of jquery.js (jquery.min.js) throws syntax error

Xavier yadd at debian.org
Sat May 11 21:50:03 BST 2019


Control: fixed -1 3.1.1-1
Control: notfound -1 1.7.2+dfsg-3.2
Control: tags -1 confirmed

Le 11/05/2019 à 21:52, Harald Oest a écrit :
> Package: libjs-jquery
> Version: 1.7.2+dfsg-3.2+deb8u6
> Severity: normal
> 
> Dear Maintainer,
> 
> the minified jquery library ('/usr/share/javascript/jquery/jquery.min.js') crashes with error 'SyntaxError: nothing to repeat' (as reported by Firefox JS console).
> 
> Step to reproduce this behaviour is to include the library and initialize jquery, e.g.
> 
> <script src='jquery.min.js' />
> <script>
>    $(function() {
>        console.log( "Hi, i'm jquery!" );
>    });
> </script>
> 
> The not-minified version ('/usr/share/javascript/jquery/jquery.js') works just well.
> 
> Bests
> 
> Harald

Thanks for this report. Here is a simple script to test jquery files:

  #!/bin/sh
  JQUERY=$1
  if test "$JQUERY" = ""; then
        echo "Usage $0 /path/to/jquery" >&2
        exit 1
  fi
  echo '<html>
  <body>
  <div id="d">NOK</div>
  <script src="file://'$JQUERY'"></script>
  <script>
  $("#d").text("OK");
  </script>
  </body>
  </html>' >/tmp/index.html
  firefox /tmp/index.html

Only deb8u* versions are affected by this bug (oldstable only)



More information about the Pkg-javascript-devel mailing list