wasm-bindgen/crates/webidl-tests/namespace.js

10 lines
139 B
JavaScript

global.math_test = {
pow(base, exp) {
return Math.pow(base, exp);
},
add_one(val) {
return val + 1;
},
};