cclose1 commented on issue #8953:
URL: https://github.com/apache/netbeans/issues/8953#issuecomment-3458081992

   Hi Matthias
   
   If you are going to work on this, which would be useful, I would point out
   that there are other issues, e.g. assigning to an undeclared private
   variable also causes destruction of the js file by the browser. I don't
   know how many ways there are to misuse private variables, but for
   completeness they should be included.
   
   There is also another approach worth considering. I did a search, not
   comprehensive, for javascript validators, to see how they would handle
   these private variables issues. Most were not useful and were more like
   coding standards checkers. However, https://piehost.com/tools/js-vaidator
   looks promising. It gave sensible error messages for the duplicate private
   variable and assignment to an undeclared private variable. Incorporating
   such a validator in the build process would be useful and may not require
   much work.
   
   Regards Chris.
   
   On Tue, Oct 28, 2025 at 4:32 PM Matthias Bläsing ***@***.***>
   wrote:
   
   > *matthiasblaesing* left a comment (apache/netbeans#8953)
   > <https://github.com/apache/netbeans/issues/8953#issuecomment-3457403952>
   >
   > This issue is correct, NetBeans should check for duplicate declarations of
   > private variables. I'll probably have a look at that, just not right now.
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/netbeans/issues/8953#issuecomment-3457403952>,
   > or unsubscribe
   > 
<https://github.com/notifications/unsubscribe-auth/ABGZF25TFMEIJLB2QHBLR7L3Z6LAHAVCNFSM6AAAAACKE5KFJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINJXGQYDGOJVGI>
   > .
   > You are receiving this because you authored the thread.Message ID:
   > ***@***.***>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to