mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-28 14:27:36 +03:00
12 lines
232 B
JavaScript
12 lines
232 B
JavaScript
const strictEqual = require('assert').strictEqual;
|
|
|
|
global.mathtest = {};
|
|
|
|
global.mathtest.powf = function powf(base, exp) {
|
|
return Math.pow(base, exp);
|
|
}
|
|
|
|
global.mathtest.add_one = function add_one(val) {
|
|
return val + 1;
|
|
}
|