Giter VIP home page Giter VIP logo

Comments (6)

toddself avatar toddself commented on July 19, 2024

I would be willing to help with that -- it would give others a good task list of things to work on as well.

from terser.

guybedford avatar guybedford commented on July 19, 2024

@toddself please feel free to go ahead with this - perhaps with something like a "[uglify-es]" prefix or similar to make these easy to distinguish, although ideally we should have a new label for this.

from terser.

kzc avatar kzc commented on July 19, 2024

Most open harmony bugs have already been fixed in @fabiosantoscode/uglify-es. Please verify that a given bug still exists before creating a ticket. Please follow this project's new issue template with an unambiguous succinct test case producing bad output once minified with certain options.

I wouldn't bother porting feature requests and non-bugs. Individuals can open such tickets in this project.

from terser.

toddself avatar toddself commented on July 19, 2024

Thanks to the hard work from @kzc and @fabiosantoscode it looks like the only remaining bugs in the uglify-js that aren't marked as resolved in the threads are:

The first two seem to be low priority/edge cases. The last one involves the test262 feature set. Are these even worth porting over?

from terser.

kzc avatar kzc commented on July 19, 2024

@toddself Thanks. Like you say those are obscure edge cases. I think users can report issues to this project as they arise.

Other known issues with uglify-es and this fork:

$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | bin/uglifyjs --toplevel -c | node
FOO
$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | node0_10_41 
FOO

$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | node0_12_9 
FOO

$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | node421
FOO

$ echo 'while(0){function foo(){console.log("FOO")}} foo();' | node621 
[stdin]:1
while(0){function foo(){console.log("FOO")}} foo();
                                             ^
TypeError: foo is not a function

Functions and classes still incorrectly follow ES5 scope rules as node versions 0.10, 0.12 and 4.x did.

from terser.

kzc avatar kzc commented on July 19, 2024

No need for this ticket now that people are becoming more familiar with the Terser project.

from terser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.