node/test/message/v8_warning.js

20 lines
230 B
JavaScript

'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();