wasm-bindgen 0.2.92

Easy support for interacting between JS and Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const wasm = require('wasm-bindgen-test.js');
const assert = require('assert');

exports.call_throw_one = function() {
  try {
    wasm.throw_one();
  } catch (e) {
    assert.strictEqual(e, 1);
  }
};

exports.call_ok = function() {
  wasm.nothrow();
};