| wasm {V8} | R Documentation |
Experimental wrapper to load a WebAssembly program. Returns a list of exported functions. This will probably be moved into it's own package once WebAssembly matures.
wasm(data)
data |
either raw vector or file path with the binary wasm program |
# Load example wasm program
if(engine_info()$version > 6){
instance <- wasm(system.file('wasm/add.wasm', package = 'V8'))
instance$exports$add(12, 30)
}