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);
} }

`
### Language / Project Type / NetBeans Component
HTML5/Javascript project (vanilla, for browser use)
### How to reproduce

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