mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
f8763bb077
PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
20 lines
230 B
JavaScript
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();
|