summaryrefslogtreecommitdiff
path: root/test/bad_params.asm.js
blob: cc5e7ccf8af420f6d25829cbcdedf8536ebb86a9 (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
function asm(global, env, buffer) {
  "use asm";

  function missing(x, y) {
    x = x | 0;
    y = +y;
  }

  function extra(x, y) {
    x = x | 0;
    y = +y;
  }

  function mix(a) {
    a = a | 0;
  }

  function ex() {
    missing();
    missing(1);
    extra(1, +2, 3);
    extra(1, +2, 3, 4);
    mix();
    mix(1);
    mix(1, 2);
  }

  return { ex: ex };
}