-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Description
#include <emscripten.h>
#include <emscripten/bind.h>
void performWork() {
int *i = new int;
}
int main(){
return 0;
}
EMSCRIPTEN_BINDINGS(panda) {
emscripten::function("performWork", &performWork);
}emcc -lembind -o panda.wasm panda.cpp
Error loading WASM: TypeError: WebAssembly.instantiate(): Import #0 "env": module is not an object or function
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels