mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 13:31:22 +00:00
Fix tests
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
const strictEqual = require('assert').strictEqual;
|
||||
|
||||
global.math = class {
|
||||
powf(base, exp) {
|
||||
return Math.pow(base, exp);
|
||||
}
|
||||
global.mathtest = {};
|
||||
|
||||
add_one(val) {
|
||||
return val + 1;
|
||||
}
|
||||
};
|
||||
global.mathtest.powf = function powf(base, exp) {
|
||||
return Math.pow(base, exp);
|
||||
}
|
||||
|
||||
global.mathtest.add_one = function add_one(val) {
|
||||
return val + 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user