[JS] TVMArrayAlloc missing when running web/test_module_load.js

Hi,

I followed the installation instructions from https://docs.tvm.ai/jsdoc/index.html.
I can generate the library but I can’t load it: I get the following error when running tests/web/test_module_load.js

> node test_module_load.js
Assertion failed: Cannot call unknown function TVMArrayAlloc, make sure it is exported
Assertion failed: Cannot call unknown function TVMArrayAlloc, make sure it is exported

/home/gaetan/Public/Python/workspace/test_tvm/tvm/lib/test_module.js:1
(function (exports, require, module, __filename, __dirname) { var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}Module["arguments"]=[];Module["thisProgram"]="./this.program";Module["quit"]=(function(status,toThrow){throw toThrow});Module["preRun"]=[];Module["postRun"]=[];var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}else{return 
abort("Assertion failed: Cannot call unknown function TVMArrayAlloc, make sure it is exported"). Build with -s ASSERTIONS=1 for more info.

I am sorry but I have no idea on how to solve this.

Also, in test_module_load.js, why is the chdir needed? “Load Emscripten Module, need to change path to root/lib”.

Thanks a lot in advance