summaryrefslogtreecommitdiff
path: root/test/message/v8_warning.js
blob: d7d1c5e7dbdff644332be0847181b6d0ecec439e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'use strict';

require('../common');

function AsmModule() {
  'use asm';

  function add(a, b) {
    a = a | 0;
    b = b | 0;

    // Should be `return (a + b) | 0;`
    return a + b;
  }

  return { add: add };
}

AsmModule();