1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-03-21 12:40:52 +00:00
Alex Crichton a98b5ea2a0 Add WebIDL support for the ArrayBuffer type
Should help enable a slew of new bindings as well.
2018-08-04 16:34:12 -05:00

9 lines
119 B
JavaScript

global.ArrayBufferTest = class {
getBuffer() {
return new ArrayBuffer(3);
}
setBuffer(x) {
// ...
}
};