wasm-bindgen/tests/wasm/variadic.js

7 lines
173 B
JavaScript
Raw Normal View History

const wasm = require('wasm-bindgen-test.js');
const assert = require('assert');
exports.variadic_sum = () =>
Array.from(arguments).reduce((acc, val) => acc + val, 0);