[DRE-maint] Bug#888945: ruby-uglifier FTBFS with node-source-map 0.7

Pirate Praveen praveen at debian.org
Wed Jan 31 12:22:46 UTC 2018


Package: ruby-uglifier
Version: 2.7.2+dfsg-2
Severity: serious
Control: block 888926 by -1

1) Uglifier should be able to handle an input source map
     # Needs UglifyJS >= 2.5 to work
     Failure/Error: @context.call(Uglifier::JS, options)

     JSON::ParserError:
       765: unexpected token at '(node:8571)
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection
id: 2): TypeError: Cannot read property 'join' of undefined
       (node:8571) [DEP0018] DeprecationWarning: Unhandled promise
rejections are deprecated. In the future, promise rejections that are
not handled will terminate the Node.js process with a non-zero exit code.
       '
     # /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/lib/uglifier.rb:230:in
`run_uglifyjs'
     # /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/lib/uglifier.rb:197:in
`compile_with_map'
     # /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/lib/uglifier.rb:169:in
`compile_with_map'
     #
/<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/spec/source_map_spec.rb:78:in
`block (2 levels) in <top (required)>'

Failures:

  1) Uglifier generates source maps
     Failure/Error: @context.call(Uglifier::JS, options)

     ExecJS::RuntimeError:
       SyntaxError: Unexpected token: punc (,)
     # JS_Parse_Error.get ((execjs):3893:621)
     # (execjs):4293:48
     # (execjs):1:102
     # Object.<anonymous> ((execjs):1:120)
     # Module._compile (module.js:635:30)
     # Object.Module._extensions..js (module.js:646:10)
     # Module.load (module.js:554:32)
     # tryModuleLoad (module.js:497:12)
     # Function.Module._load (module.js:489:3)
     # Function.Module.runMain (module.js:676:10)
     # /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/lib/uglifier.rb:230:in
`run_uglifyjs'
     # /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/lib/uglifier.rb:197:in
`compile_with_map'
     #
/<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/spec/source_map_spec.rb:20:in
`block (2 levels) in <top (required)>'

  2) Uglifier minifies JS
     Failure/Error: @context.call(Uglifier::JS, options)

     ExecJS::RuntimeError:
       SyntaxError: Unexpected token: punc (,)
     # JS_Parse_Error.get ((execjs):3893:621)
     # (execjs):4293:48
     # (execjs):1:102
     # Object.<anonymous> ((execjs):1:120)
     # Module._compile (module.js:635:30)
     # Object.Module._extensions..js (module.js:646:10)
     # Module.load (module.js:554:32)
     # tryModuleLoad (module.js:497:12)
     # Function.Module._load (module.js:489:3)
     # Function.Module.runMain (module.js:676:10)
     # /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/lib/uglifier.rb:230:in
`run_uglifyjs'
     # /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/lib/uglifier.rb:188:in
`compile'
     # /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/spec/uglifier_spec.rb:8:in
`block (2 levels) in <top (required)>'

Finished in 45.44 seconds (files took 0.1398 seconds to load)
44 examples, 2 failures, 1 pending

Failed examples:

rspec /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/spec/source_map_spec.rb:18
# Uglifier generates source maps
rspec /<<BUILDDIR>>/ruby-uglifier-2.7.2+dfsg/spec/uglifier_spec.rb:6 #
Uglifier minifies JS

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20180131/f7a8e68e/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list