aboutsummaryrefslogtreecommitdiffstats
path: root/tools/node_modules/expresso/deps/jscoverage/tests/javascript/javascript-function.js
blob: 94fc8bd5638253f8f25f28502897d69418515b5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
function x() {}

function x() {
  ;
}

function x() {
  x();
  return 'x';
}

function x(a) {
  x();
}

function x(a, b) {
  x();
}

x = function() {
  x();
};

(function () {
  print('x');
})();

(function (a) {
  print('x');
})(1);

(function (a, b) {
  print('x');
})(1, 2);

(function () {
  print('x');
}).call(window);