2021-06-08 14:23:48 +02:00
|
|
|
Call a non-callable symbol will result in a TypeError at execution.
|
|
|
|
|
|
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
|
|
|
|
----
|
|
|
|
function foo(a) {
|
|
|
|
return a * 2;
|
|
|
|
}
|
|
|
|
// ....
|
|
|
|
var foo = 1;
|
|
|
|
// ...
|
|
|
|
foo(); // foo is 1 => TypeError
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
2021-06-08 15:52:13 +02:00
|
|
|
'''
|
2021-06-08 14:23:48 +02:00
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::comments-and-links.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|