See the screenshot in attachment.
The code:
-------
<html>
<body>
<script language="JavaScript" type="text/javascript">
<!--
var images = new Array();
images[images.length] = "1";
<!-- images[images.length] = "2"; -->
images[images.length] = "3";
// -->
</script>
</body>
</html>
-------
is run OK by browsers, but produces "Unresolved Variable" for "images" variable in IDEA.