node/test/fixtures/v8/v8_warning.js
Joshua LeMay 982b57651b
test: migrate message v8 tests from Python to JS
PR-URL: https://github.com/nodejs/node/pull/50421
Fixes: https://github.com/nodejs/node/issues/47707
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
2023-11-23 10:15:39 +01:00

19 lines
233 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();