2021-06-08 14:23:48 +02:00

34 lines
650 B
Plaintext

While named function expressions might be useful for debugging purposes, some browsers do not support them correctly (for example Internet Explorer 8).
== Noncompliant Code Example
----
f = function fun(){}; // Noncompliant; named function expression
----
== Compliant Solution
----
fun = function(){}; // Compliant; function expression
----
== Exceptions
ECMAScript 6 generator functions are excluded from this rule.
----
function* f() {} // Compliant; generator function.
----
ifdef::env-github,rspecator-view[]
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]