1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-06-17 06:51:24 +00:00
Files
2019-08-27 18:20:24 +01:00

7 lines
194 B
JavaScript

// For more comments about what's going on here, check out the `hello_world`
// example
const rust = import('./pkg');
rust
.then(m => alert('1 + 2 = ' + m.add(1, 2)))
.catch(console.error);