examples

Loader Example

An AssemblyScript example. Utilizes the loader to perform various common tasks on the WebAssembly/JavaScript boundary, like passing along strings and arrays.

Instructions

Install the dependencies, build the WebAssembly module and verify that everything works:

$> npm install
$> npm run asbuild
$> npm test

The example consists of several files showing the different perspectives, in recommended reading order:

To rerun the tests:

$> npm test