emscripten-tutorial

How to build an increasingly complex C/C++ codebase to WebAssembly
git clone https://git.tronto.net/emscripten-tutorial
Download | Log | Files | Refs | README

program.mjs (180B)


      1 import MyLibrary from "./build/library.mjs";
      2 
      3 var myLibraryInstance = await MyLibrary();
      4 
      5 const result = myLibraryInstance._multiply(6, 7);
      6 console.log("The answer is " + result);