This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NetBeans should be able to handle destructuring assignment in the right way. https://developer.mozilla.org/cs/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment Currently there are false hints and mark occurrences works in wrong way in cases like: ({a, b} = {a:1, b:2});
Simple array destructuring assignment is handled by NB now.
Created attachment 159315 [details] Simple Array Destructuring Assignment Simple array destructuring assignment. Variables are created, mark occurrences and Go To declaration should work.
Created attachment 159316 [details] Array Destructuring Assignment with Default Values According the default values NB can suggest the tape of object.
Created attachment 159317 [details] Array Destructuring Assignment from a Function
Created attachment 159318 [details] Array Destructuring Assignment - swap values of two variables Mark occurrences should work as expected.
Created attachment 159319 [details] Simple Object Destructuring Assignment Creating variables, mark occurrences and Go To navigation should work.
Created attachment 159320 [details] Object destructuring assignment without declaration
Created attachment 159321 [details] Object destructuring assignment without declaration Mark occurrences should work on both sides.
Created attachment 159322 [details] Object destructuring assignment , when a property is not defined In this case, the property from the assigned object literal corresponds with the properties on the left site of the assignment. Mark occurrences work for such properties, user can rename them. Also the property w is not defined on the right site, so NetBeans doesn't mark such property with green color.
Created attachment 159323 [details] Object destructuring assigning to new variable names NetBeans marks occurrences of the properties assigned from the object literal on the right sight and the properties used on the left site.
Created attachment 159324 [details] Setting a function parameter's default value NetBeans handle parameters defined via destructuring assignment. The mark occurrences, Go To Declaration and code completion should work in such cases.
The support is done. Implemented in ecma6-truffle branch. There is an issue #258901 with false warnings that will be fixed soon.