Closed rwasef1830 closed 3 years ago
Minimized test case that triggers the false error:
'use strict';
const SomeClass = {
property1() {
},
property2() {
}
};
The problem is here: https://github.com/trullock/NUglify/blob/a87b7d1493bb919c94916e5d9fc23d69a17c35ff/src/NUglify/JavaScript/Visitors/AnalyzeNodeVisitor.cs#L3365
property.Name ends up null which seems wrong, it should be the name of the function I think.
The line youve found seems to show the symptom not the cause. The property should have a name by this point.
JSParser Line 4924 is where the issue stems from
Hello, Attempting to minify a bundle containing bootstrap.bundle.js produces the following errors:
At the moment I don't know if the duplicate property error is true or not, but in general ECMAScript 6 strict mode was updated to allow duplicate properties, see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer