grelf-net opened a new issue, #7260:
URL: https://github.com/apache/netbeans/issues/7260

   ### Apache NetBeans version
   
   Apache NetBeans 21
   
   ### What happened
   
   `  for (let i = 0; i < cellsInRange.length; i++)
     { let ci = cellsInRange[i];
       if (!ci.cell.open)
       { let ims = ci.cell.getWallImages();
         let data = [
           {s:ci.sxydNW, i:ims[0]},//Bug in NetBeans!
           {s:ci.sxydNE, i:ims[1]},//It says ims is an undeclared global
           {s:ci.sxydSW, i:ims[2]},//OK in browser though
           {s:ci.sxydSE, i:ims[3]}];
         data.sort(function(a, b) {return b.s.d - a.s.d;}); // Descending 
distance
         this.drawWall(data[1].s, data[3].s, data[1].i, ci.fogNo);
         this.drawWall(data[2].s, data[3].s, data[2].i, ci.fogNo);
     } }
   ![Screenshot 2024-04-11 
155614](https://github.com/apache/netbeans/assets/38698437/7ac542c0-2e92-4491-80f8-2b5408b10501)
   `
   
   ### Language / Project Type / NetBeans Component
   
   HTML5/Javascript project (vanilla, for browser use)
   
   ### How to reproduce
   
   ![Screenshot 2024-04-11 
155614](https://github.com/apache/netbeans/assets/38698437/587c6b4c-9549-4c3c-b777-da0918ce54f2)
   
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 18
   
   ### Operating System
   
   WIndows 11 latest
   
   ### JDK
   
   JDK 11
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   Every time. If I change the let ims to var ims it is OK. The error is in 
NetBeans syntax checker.
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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