|








SourceForge Project
| |
Project News
Sat, 24 Dec 2005 18:56:35 +0000
This release includes a number changes.
Enhancements:
JavaScript Lint warns if the default case is not at the end of the switch statement.
Control comments can now use the /*jsl:keyword*/ syntax in addition to the /*@keyword@*/
syntax. The new syntax is recommended for interoperability with JScript conditional compilation, although the traditional syntax
is still supported.
The "missing break" warning can be disabled for the last case in a switch statement. The presence of this break
is merely stylistic preference.
The "missing semicolon" warning can be disabled when anonymous functions are assigned to variables and properties (such
as function prototypes). Code such as the following can optionally be allowed:
function Coord() {
this.x = function() {
return 1;
}
}
Coord.prototype.y = function() {
return 0;
}
Bug Fixes:
The "undeclared identifier" warning for variables has been updated to reflect the ECMA specification. The following code
no longer issues a warning:
function getX() { return x; }
var x;
Scripts with circular import directives no longer incorrectly report undeclared identifiers.
Available from the download page.
|