Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JAVASCRIPT-1.3
-
Component/s: JavaScript
-
Labels:None
-
Number of attachments :
Description
See http://kangax.github.com/nfe/
Title
Avoid named function expression
Severity
Major
Description
<p>While named function expressions might be useful for debugging purposes, some browsers do not support them correctly (for example Internet Explorer 8).</p>
<p>
The following code snippet illustrates this rule :
</p>
<pre>
f = function fun(){}; // Non-Complian - named function expression
f = function(){}; // Complian - function expression
</pre>
Message
Avoid named function expression.
Activated?
Yes
Cardinality
Single
Issue Links
- is related to
-
SONARPLUGINS-2743
Update the SQALE mapping for new rules
-
Freddy, please check that description of this rule is ok.