Closed zonets closed 9 months ago
Thanks for the report
I dont have time to look at this but PRs are very welcome. See the other Object literal issues as theres a number of related bugs here.
The stack trace is indicative of where the problem lies, around NUglify.JavaScript.JSParser.ParseObjectLiteralProperty(bool isBindingPattern)
NUglify 1.20.7 crashes on certain ES6-specific input.
Repro steps Run NUglifyApp with the following input:
Alternatively, insert
()
in one of the property name expressions insrc/NUglify.Tests/TestData/JS/Input/Literals/ObjectLiteral.js
such asand run the tests.
Result
Excepted output code