title: WASM (WebAssembly) project stops running unexpectedly in Visual Studio 2019
body: <p>All other projects are running fine in my solution.</p>
  <p>However, my WebAssembly (WASM) project is not running and throwing exceptions with no details.</p>
  <p>Just one dynamic file opened with the name:</p>
  <pre><code>localhost:44337/_framework/dotnet.5.0.14.js [dynamic]
  </code></pre>
  <p>This file disappeared when I stopped the project.</p>
  <p>This is the code:</p>
  <pre><code>var Module=typeof Module!==&quot;undefined&quot;?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram=&quot;./this.program&quot;;var quit_=function(status,toThrow){throw toThrow};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===&quot;object&quot;;ENVIRONMENT_IS_WORKER=typeof importScripts===&quot;function&quot;;ENVIRONMENT_IS_NODE=typeof process===&quot;object&quot;&amp;&amp;typeof process.versions===&quot;object&quot;&amp;&amp;typeof process.versions.node===&quot;string&quot;;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&amp;&amp;!ENVIRONMENT_IS_NODE&amp;&amp;!ENVIRONMENT_IS_WORKER;var scriptDirectory=&quot;&quot;;function locateFile(path){if(Module[&quot;locateFile&quot;]){return Module[&quot;locateFile&quot;](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require(&quot;path&quot;).dirname(scriptDirectory)+&quot;/&quot;}else{scriptDirectory=__dirname+&quot;/&quot;}read_=function shell_read(filename,binary){if(!nodeFS)nodeFS=require(&quot;fs&quot;);if(!nodePath)nodePath=require(&quot;path&quot;);filename=nodePath[&quot;normalize&quot;](filename);return nodeFS[&quot;readFileSync&quot;](filename,binary?null:&quot;utf8&quot;)};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process[&quot;argv&quot;].length&gt;1){thisProgram=process[&quot;argv&quot;][1].replace(/\\/g,&quot;/&quot;)}arguments_=process[&quot;argv&quot;].slice(2);if(typeof module!==&quot;undefined&quot;){module[&quot;exports&quot;]=Module}process[&quot;on&quot;](&quot;uncaughtException&quot;,function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process[&quot;on&quot;](&quot;unhandledRejection&quot;,abort);quit_=function(status){process[&quot;exit&quot;](status)};Module[&quot;inspect&quot;]=function(){return&quot;[Emscripten Module object]&quot;}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!=&quot;undefined&quot;){read_=function shell_read(f){return read(f)}}readBinary=function readBinary(f){var data;if(typeof readbuffer===&quot;function&quot;){return new Uint8Array(readbuffer(f))}data=read(f,&quot;binary&quot;);assert(typeof data===&quot;object&quot;);return data};if(typeof scriptArgs!=&quot;undefined&quot;){arguments_=scriptArgs}else if(typeof arguments!=&quot;undefined&quot;){arguments_=arguments}if(typeof quit===&quot;function&quot;){quit_=function(status){quit(status)}}if(typeof print!==&quot;undefined&quot;){if(typeof console===&quot;undefined&quot;)console={};console.log=print;console.warn=console.error=typeof printErr!==&quot;undefined&quot;?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(document.currentScript){scriptDirectory=document.currentScript.src}if(scriptDirectory.indexOf(&quot;blob:&quot;)!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf(&quot;/&quot;)+1)}else{scriptDirectory=&quot;&quot;}{read_=function shell_read(url){var xhr=new XMLHttpRequest;xhr.open(&quot;GET&quot;,url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){var xhr=new XMLHttpRequest;xhr.open(&quot;GET&quot;,url,false);xhr.responseType=&quot;arraybuffer&quot;;xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open(&quot;GET&quot;,url,true);xhr.responseType=&quot;arraybuffer&quot;;xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&amp;&amp;xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module[&quot;print&quot;]||console.log.bind(console);var err=Module[&quot;printErr&quot;]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module[&quot;arguments&quot;])arguments_=Module[&quot;arguments&quot;];if(Module[&quot;thisProgram&quot;])thisProgram=Module[&quot;thisProgram&quot;];if(Module[&quot;quit&quot;])quit_=Module[&quot;quit&quot;];var STACK_ALIGN=16;function dynamicAlloc(size){var ret=HEAP32[DYNAMICTOP_PTR&gt;&gt;2];var end=ret+size+15&amp;-16;HEAP32[DYNAMICTOP_PTR&gt;&gt;2]=end;return ret}function alignMemory(size,factor){if(!factor)factor=STACK_ALIGN;return Math.ceil(size/factor)*factor}function convertJsFunctionToWasm(func,sig){if(typeof WebAssembly.Function===&quot;function&quot;){var typeNames={&quot;i&quot;:&quot;i32&quot;,&quot;j&quot;:&quot;i64&quot;,&quot;f&quot;:&quot;f32&quot;,&quot;d&quot;:&quot;f64&quot;};var type={parameters:[],results:sig[0]==&quot;v&quot;?[]:[typeNames[sig[0]]]};for(var i=1;i&lt;sig.length;++i){type.parameters.push(typeNames[sig[i]])}return new WebAssembly.Function(type,func)}var typeSection=[1,0,1,96];var sigRet=sig.slice(0,1);var sigParam=sig.slice(1);var typeCodes={&quot;i&quot;:127,&quot;j&quot;:126,&quot;f&quot;:125,&quot;d&quot;:124};typeSection.push(sigParam.length);for(var i=0;i&lt;sigParam.length;++i){typeSection.push(typeCodes[sigParam[i]])}if(sigRet==&quot;v&quot;){typeSection.push(0)}else{typeSection=typeSection.concat([1,typeCodes[sigRet]])}typeSection[1]=typeSection.length-2;var bytes=new Uint8Array([0,97,115,109,1,0,0,0].concat(typeSection,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0]));var module=new WebAssembly.Module(bytes);var instance=new WebAssembly.Instance(module,{&quot;e&quot;:{&quot;f&quot;:func}});var wrappedFunc=instance.exports[&quot;f&quot;];return wrappedFunc}var freeTableIndexes=[];var functionsInTableMap;function addFunctionWasm(func,sig){var table=wasmTable;if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var i=0;i&lt;table.length;i++){var item=table.get(i);if(item){functionsInTableMap.set(item,i)}}}if(functionsInTableMap.has(func)){return functionsInTableMap.get(func)}var ret;if(freeTableIndexes.length){ret=freeTableIndexes.pop()}else{ret=table.length;try{table.grow(1)}catch(err){if(!(err instanceof RangeError)){throw err}throw&quot;Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.&quot;}}try{table.set(ret,func)}catch(err){if(!(err instanceof TypeError)){throw err}var wrapped=convertJsFunctionToWasm(func,sig);table.set(ret,wrapped)}functionsInTableMap.set(func,ret);return ret}function addFunction(func,sig){return addFunctionWasm(func,sig)}var tempRet0=0;var setTempRet0=function(value){tempRet0=value};var getTempRet0=function(){return tempRet0};var wasmBinary;if(Module[&quot;wasmBinary&quot;])wasmBinary=Module[&quot;wasmBinary&quot;];var noExitRuntime;if(Module[&quot;noExitRuntime&quot;])noExitRuntime=Module[&quot;noExitRuntime&quot;];if(typeof WebAssembly!==&quot;object&quot;){abort(&quot;no native wasm support detected&quot;)}function setValue(ptr,value,type,noSafe){type=type||&quot;i8&quot;;if(type.charAt(type.length-1)===&quot;*&quot;)type=&quot;i32&quot;;switch(type){case&quot;i1&quot;:HEAP8[ptr&gt;&gt;0]=value;break;case&quot;i8&quot;:HEAP8[ptr&gt;&gt;0]=value;break;case&quot;i16&quot;:HEAP16[ptr&gt;&gt;1]=value;break;case&quot;i32&quot;:HEAP32[ptr&gt;&gt;2]=value;break;case&quot;i64&quot;:tempI64=[value&gt;&gt;&gt;0,(tempDouble=value,+Math_abs(tempDouble)&gt;=1?tempDouble&gt;0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)&gt;&gt;&gt;0:~~+Math_ceil((tempDouble-+(~~tempDouble&gt;&gt;&gt;0))/4294967296)&gt;&gt;&gt;0:0)],HEAP32[ptr&gt;&gt;2]=tempI64[0],HEAP32[ptr+4&gt;&gt;2]=tempI64[1];break;case&quot;float&quot;:HEAPF32[ptr&gt;&gt;2]=value;break;case&quot;double&quot;:HEAPF64[ptr&gt;&gt;3]=value;break;default:abort(&quot;invalid type for setValue: &quot;+type)}}function getValue(ptr,type,noSafe){type=type||&quot;i8&quot;;if(type.charAt(type.length-1)===&quot;*&quot;)type=&quot;i32&quot;;switch(type){case&quot;i1&quot;:return HEAP8[ptr&gt;&gt;0];case&quot;i8&quot;:return HEAP8[ptr&gt;&gt;0];case&quot;i16&quot;:return HEAP16[ptr&gt;&gt;1];case&quot;i32&quot;:return HEAP32[ptr&gt;&gt;2];case&quot;i64&quot;:return HEAP32[ptr&gt;&gt;2];case&quot;float&quot;:return HEAPF32[ptr&gt;&gt;2];case&quot;double&quot;:return HEAPF64[ptr&gt;&gt;3];default:abort(&quot;invalid type for getValue: &quot;+type)}return null}var wasmMemory;var wasmTable=new WebAssembly.Table({&quot;initial&quot;:3950,&quot;maximum&quot;:3950,&quot;element&quot;:&quot;anyfunc&quot;});var ABORT=false;var EXITSTATUS=0;function assert(condition,text){if(!condition){abort(&quot;Assertion failed: &quot;+text)}}function getCFunc(ident){var func=Module[&quot;_&quot;+ident];assert(func,&quot;Cannot call unknown function &quot;+ident+&quot;, make sure it is exported&quot;);return func}function ccall(ident,returnType,argTypes,args,opts){var toC={&quot;string&quot;:function(str){var ret=0;if(str!==null&amp;&amp;str!==undefined&amp;&amp;str!==0){var len=(str.length&lt;&lt;2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len)}return ret},&quot;array&quot;:function(arr){var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType===&quot;string&quot;)return UTF8ToString(ret);if(returnType===&quot;boolean&quot;)return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i&lt;args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func.apply(null,cArgs);ret=convertReturnValue(ret);if(stack!==0)stackRestore(stack);return ret}function cwrap(ident,returnType,argTypes,opts){argTypes=argTypes||[];var numericArgs=argTypes.every(function(type){return type===&quot;number&quot;});var numericRet=returnType!==&quot;string&quot;;if(numericRet&amp;&amp;numericArgs&amp;&amp;!opts){return getCFunc(ident)}return function(){return ccall(ident,returnType,argTypes,arguments,opts)}}function getMemory(size){if(!runtimeInitialized)return dynamicAlloc(size);return _malloc(size)}var UTF8Decoder=typeof TextDecoder!==&quot;undefined&quot;?new TextDecoder(&quot;utf8&quot;):undefined;function UTF8ArrayToString(heap,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heap[endPtr]&amp;&amp;!(endPtr&gt;=endIdx))++endPtr;if(endPtr-idx&gt;16&amp;&amp;heap.subarray&amp;&amp;UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str=&quot;&quot;;while(idx&lt;endPtr){var u0=heap[idx++];if(!(u0&amp;128)){str+=String.fromCharCode(u0);continue}var u1=heap[idx++]&amp;63;if((u0&amp;224)==192){str+=String.fromCharCode((u0&amp;31)&lt;&lt;6|u1);continue}var u2=heap[idx++]&amp;63;if((u0&amp;240)==224){u0=(u0&amp;15)&lt;&lt;12|u1&lt;&lt;6|u2}else{u0=(u0&amp;7)&lt;&lt;18|u1&lt;&lt;12|u2&lt;&lt;6|heap[idx++]&amp;63}if(u0&lt;65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch&gt;&gt;10,56320|ch&amp;1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):&quot;&quot;}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite&gt;0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i&lt;str.length;++i){var u=str.charCodeAt(i);if(u&gt;=55296&amp;&amp;u&lt;=57343){var u1=str.charCodeAt(++i);u=65536+((u&amp;1023)&lt;&lt;10)|u1&amp;1023}if(u&lt;=127){if(outIdx&gt;=endIdx)break;heap[outIdx++]=u}else if(u&lt;=2047){if(outIdx+1&gt;=endIdx)break;heap[outIdx++]=192|u&gt;&gt;6;heap[outIdx++]=128|u&amp;63}else if(u&lt;=65535){if(outIdx+2&gt;=endIdx)break;heap[outIdx++]=224|u&gt;&gt;12;heap[outIdx++]=128|u&gt;&gt;6&amp;63;heap[outIdx++]=128|u&amp;63}else{if(outIdx+3&gt;=endIdx)break;heap[outIdx++]=240|u&gt;&gt;18;heap[outIdx++]=128|u&gt;&gt;12&amp;63;heap[outIdx++]=128|u&gt;&gt;6&amp;63;heap[outIdx++]=128|u&amp;63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i&lt;str.length;++i){var u=str.charCodeAt(i);if(u&gt;=55296&amp;&amp;u&lt;=57343)u=65536+((u&amp;1023)&lt;&lt;10)|str.charCodeAt(++i)&amp;1023;if(u&lt;=127)++len;else if(u&lt;=2047)len+=2;else if(u&lt;=65535)len+=3;else len+=4}return len}function stringToUTF16(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite&lt;2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite&lt;str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i&lt;numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr&gt;&gt;1]=codeUnit;outPtr+=2}HEAP16[outPtr&gt;&gt;1]=0;return outPtr-startPtr}function allocateUTF8(str){var size=lengthBytesUTF8(str)+1;var ret=_malloc(size);if(ret)stringToUTF8Array(str,HEAP8,ret,size);return ret}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i&lt;str.length;++i){HEAP8[buffer++&gt;&gt;0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer&gt;&gt;0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple&gt;0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module[&quot;HEAP8&quot;]=HEAP8=new Int8Array(buf);Module[&quot;HEAP16&quot;]=HEAP16=new Int16Array(buf);Module[&quot;HEAP32&quot;]=HEAP32=new Int32Array(buf);Module[&quot;HEAPU8&quot;]=HEAPU8=new Uint8Array(buf);Module[&quot;HEAPU16&quot;]=HEAPU16=new Uint16Array(buf);Module[&quot;HEAPU32&quot;]=HEAPU32=new Uint32Array(buf);Module[&quot;HEAPF32&quot;]=HEAPF32=new Float32Array(buf);Module[&quot;HEAPF64&quot;]=HEAPF64=new Float64Array(buf)}var STACK_MAX=614352,DYNAMIC_BASE=5857232,DYNAMICTOP_PTR=614192;var TOTAL_STACK=5242880;var INITIAL_INITIAL_MEMORY=Module[&quot;INITIAL_MEMORY&quot;]||16777216;if(Module[&quot;wasmMemory&quot;]){wasmMemory=Module[&quot;wasmMemory&quot;]}else{wasmMemory=new WebAssembly.Memory({&quot;initial&quot;:INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,&quot;maximum&quot;:2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);HEAP32[DYNAMICTOP_PTR&gt;&gt;2]=DYNAMIC_BASE;function callRuntimeCallbacks(callbacks){while(callbacks.length&gt;0){var callback=callbacks.shift();if(typeof callback==&quot;function&quot;){callback(Module);continue}var func=callback.func;if(typeof func===&quot;number&quot;){if(callback.arg===undefined){Module[&quot;dynCall_v&quot;](func)}else{Module[&quot;dynCall_vi&quot;](func,callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module[&quot;preRun&quot;]){if(typeof Module[&quot;preRun&quot;]==&quot;function&quot;)Module[&quot;preRun&quot;]=[Module[&quot;preRun&quot;]];while(Module[&quot;preRun&quot;].length){addOnPreRun(Module[&quot;preRun&quot;].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;if(!Module[&quot;noFSInit&quot;]&amp;&amp;!FS.init.initialized)FS.init();TTY.init();SOCKFS.root=FS.mount(SOCKFS,{},null);callRuntimeCallbacks(__ATINIT__)}function preMain(){FS.ignorePermissions=false;callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module[&quot;postRun&quot;]){if(typeof Module[&quot;postRun&quot;]==&quot;function&quot;)Module[&quot;postRun&quot;]=[Module[&quot;postRun&quot;]];while(Module[&quot;postRun&quot;].length){addOnPostRun(Module[&quot;postRun&quot;].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var Math_abs=Math.abs;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_min=Math.min;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module[&quot;monitorRunDependencies&quot;]){Module[&quot;monitorRunDependencies&quot;](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module[&quot;monitorRunDependencies&quot;]){Module[&quot;monitorRunDependencies&quot;](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module[&quot;preloadedImages&quot;]={};Module[&quot;preloadedAudios&quot;]={};function abort(what){if(Module[&quot;onAbort&quot;]){Module[&quot;onAbort&quot;](what)}what+=&quot;&quot;;err(what);ABORT=true;EXITSTATUS=1;what=&quot;abort(&quot;+what+&quot;). Build with -s ASSERTIONS=1 for more info.&quot;;var e=new WebAssembly.RuntimeError(what);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix=&quot;data:application/octet-stream;base64,&quot;;function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix=&quot;file://&quot;;function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile=&quot;dotnet.wasm&quot;;if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(wasmBinaryFile)}else{throw&quot;both async and sync fetching of the wasm failed&quot;}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&amp;&amp;(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&amp;&amp;typeof fetch===&quot;function&quot;&amp;&amp;!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:&quot;same-origin&quot;}).then(function(response){if(!response[&quot;ok&quot;]){throw&quot;failed to load wasm binary file at '&quot;+wasmBinaryFile+&quot;'&quot;}return response[&quot;arrayBuffer&quot;]()}).catch(function(){return getBinary()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={&quot;a&quot;:asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module[&quot;asm&quot;]=exports;removeRunDependency(&quot;wasm-instantiate&quot;)}addRunDependency(&quot;wasm-instantiate&quot;);function receiveInstantiatedSource(output){receiveInstance(output[&quot;instance&quot;])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err(&quot;failed to asynchronously prepare wasm: &quot;+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&amp;&amp;typeof WebAssembly.instantiateStreaming===&quot;function&quot;&amp;&amp;!isDataURI(wasmBinaryFile)&amp;&amp;!isFileURI(wasmBinaryFile)&amp;&amp;typeof fetch===&quot;function&quot;){fetch(wasmBinaryFile,{credentials:&quot;same-origin&quot;}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err(&quot;wasm streaming compile failed: &quot;+reason);err(&quot;falling back to ArrayBuffer instantiation&quot;);return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module[&quot;instantiateWasm&quot;]){try{var exports=Module[&quot;instantiateWasm&quot;](info,receiveInstance);return exports}catch(e){err(&quot;Module.instantiateWasm callback failed with error: &quot;+e);return false}}instantiateAsync();return{}}var tempDouble;var tempI64;var ASM_CONSTS={42719:function($0,$1,$2){MONO.mono_wasm_add_typed_value(&quot;pointer&quot;,$0,{ptr_addr:$1,klass_addr:$2})},42819:function($0,$1,$2){MONO.mono_wasm_add_typed_value(&quot;array&quot;,$0,{objectId:$1,length:$2})},42926:function($0,$1,$2,$3,$4,$5){MONO.mono_wasm_add_typed_value($0,$1,{toString:$2,value_addr:$3,value_size:$4,klass:$5})},43048:function($0,$1,$2){MONO.mono_wasm_add_typed_value($0,$1,{toString:$2})},43388:function($0,$1,$2,$3,$4){MONO.mono_wasm_add_properties_var($0,{field_offset:$1,is_own:$2,attr:$3,owner_class:$4})},125764:function(){return STACK_MAX},125786:function(){return TOTAL_STACK},554847:function($0,$1){MONO.string_decoder.decode($0,$0+$1,true)},555220:function($0,$1,$2){var str=MONO.string_decoder.decode($0,$0+$1);try{var res=eval(str);if(res===null||res==undefined)return 0;res=res.toString();setValue($2,0,&quot;i32&quot;)}catch(e){res=e.toString();setValue($2,1,&quot;i32&quot;);if(res===null||res===undefined)res=&quot;unknown exception&quot;}var buff=Module._malloc((res.length+1)*2);stringToUTF16(res,buff,(res.length+1)*2);return buff},555639:function($0,$1,$2,$3){var message=Module.UTF8ToString($3)+&quot;: &quot;+Module.UTF8ToString($1);if($2)console.trace(message);switch(Module.UTF8ToString($0)){case&quot;critical&quot;:case&quot;error&quot;:console.error(message);break;case&quot;warning&quot;:console.warn(message);break;case&quot;message&quot;:console.log(message);break;case&quot;info&quot;:console.info(message);break;case&quot;debug&quot;:console.debug(message);break;default:console.log(message);break}}};function compile_function(snippet_ptr,len,is_exception){try{var data=MONO.string_decoder.decode(snippet_ptr,snippet_ptr+len);var wrapper=&quot;(function () { &quot;+data+&quot; })&quot;;var funcFactory=eval(wrapper);var func=funcFactory();if(typeof func!==&quot;function&quot;){throw new Error(&quot;Code must return an instance of a JavaScript function. &quot;+&quot;Please use `return` statement to return a function.&quot;)}setValue(is_exception,0,&quot;i32&quot;);return BINDING.js_to_mono_obj(func)}catch(e){res=e.toString();setValue(is_exception,1,&quot;i32&quot;);if(res===null||res===undefined)res=&quot;unknown exception&quot;;return BINDING.js_to_mono_obj(res)}}__ATINIT__.push({func:function(){___wasm_call_ctors()}});function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+&quot; [&quot;+x+&quot;]&quot;})}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error}catch(e){err=e}if(!err.stack){return&quot;(no stack trace available)&quot;}}return err.stack.toString()}function stackTrace(){var js=jsStackTrace();if(Module[&quot;extraStackTrace&quot;])js+=&quot;\n&quot;+Module[&quot;extraStackTrace&quot;]();return demangleAll(js)}function ___assert_fail(condition,filename,line,func){abort(&quot;Assertion failed: &quot;+UTF8ToString(condition)+&quot;, at: &quot;+[filename?UTF8ToString(filename):&quot;unknown filename&quot;,line,func?UTF8ToString(func):&quot;unknown function&quot;])}var _emscripten_get_now;if(ENVIRONMENT_IS_NODE){_emscripten_get_now=function(){var t=process[&quot;hrtime&quot;]();return t[0]*1e3+t[1]/1e6}}else if(typeof dateNow!==&quot;undefined&quot;){_emscripten_get_now=dateNow}else _emscripten_get_now=function(){return performance.now()};var _emscripten_get_now_is_monotonic=true;function setErrNo(value){HEAP32[___errno_location()&gt;&gt;2]=value;return value}function _clock_gettime(clk_id,tp){var now;if(clk_id===0){now=Date.now()}else if((clk_id===1||clk_id===4)&amp;&amp;_emscripten_get_now_is_monotonic){now=_emscripten_get_now()}else{setErrNo(28);return-1}HEAP32[tp&gt;&gt;2]=now/1e3|0;HEAP32[tp+4&gt;&gt;2]=now%1e3*1e3*1e3|0;return 0}function ___clock_gettime(a0,a1){return _clock_gettime(a0,a1)}var ExceptionInfoAttrs={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16};function ___cxa_allocate_exception(size){return _malloc(size+ExceptionInfoAttrs.SIZE)+ExceptionInfoAttrs.SIZE}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-ExceptionInfoAttrs.SIZE;this.set_type=function(type){HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET&gt;&gt;2]=type};this.get_type=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET&gt;&gt;2]};this.set_destructor=function(destructor){HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET&gt;&gt;2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET&gt;&gt;2]};this.set_refcount=function(refcount){HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET&gt;&gt;2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET&gt;&gt;0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET&gt;&gt;0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET&gt;&gt;0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET&gt;&gt;0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET&gt;&gt;2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET&gt;&gt;2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET&gt;&gt;2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET&gt;&gt;2]=prev-1;return prev===1}}function CatchInfo(ptr){this.free=function(){_free(this.ptr);this.ptr=0};this.set_base_ptr=function(basePtr){HEAP32[this.ptr&gt;&gt;2]=basePtr};this.get_base_ptr=function(){return HEAP32[this.ptr&gt;&gt;2]};this.set_adjusted_ptr=function(adjustedPtr){var ptrSize=4;HEAP32[this.ptr+ptrSize&gt;&gt;2]=adjustedPtr};this.get_adjusted_ptr=function(){var ptrSize=4;return HEAP32[this.ptr+ptrSize&gt;&gt;2]};this.get_exception_ptr=function(){var isPointer=___cxa_is_pointer_type(this.get_exception_info().get_type());if(isPointer){return HEAP32[this.get_base_ptr()&gt;&gt;2]}var adjusted=this.get_adjusted_ptr();if(adjusted!==0)return adjusted;return this.get_base_ptr()};this.get_exception_info=function(){return new ExceptionInfo(this.get_base_ptr())};if(ptr===undefined){this.ptr=_malloc(8);this.set_adjusted_ptr(0)}else{this.ptr=ptr}}var exceptionCaught=[];function exception_addRef(info){info.add_ref()}function ___cxa_begin_catch(ptr){var catchInfo=new CatchInfo(ptr);var info=catchInfo.get_exception_info();if(!info.get_caught()){info.set_caught(true);__ZSt18uncaught_exceptionv.uncaught_exceptions--}info.set_rethrown(false);exceptionCaught.push(catchInfo);exception_addRef(info);return catchInfo.get_exception_ptr()}var exceptionLast=0;function ___cxa_free_exception(ptr){return _free(new ExceptionInfo(ptr).ptr)}function exception_decRef(info){if(info.release_ref()&amp;&amp;!info.get_rethrown()){var destructor=info.get_destructor();if(destructor){Module[&quot;dynCall_ii&quot;](destructor,info.excPtr)}___cxa_free_exception(info.excPtr)}}function ___cxa_end_catch(){_setThrew(0);var catchInfo=exceptionCaught.pop();exception_decRef(catchInfo.get_exception_info());catchInfo.free();exceptionLast=0}function ___resumeException(catchInfoPtr){var catchInfo=new CatchInfo(catchInfoPtr);var ptr=catchInfo.get_base_ptr();if(!exceptionLast){exceptionLast=ptr}catchInfo.free();throw ptr}function ___cxa_find_matching_catch_3(){var thrown=exceptionLast;if(!thrown){return(setTempRet0(0),0)|0}var info=new ExceptionInfo(thrown);var thrownType=info.get_type();var catchInfo=new CatchInfo;catchInfo.set_base_ptr(thrown);if(!thrownType){return(setTempRet0(0),catchInfo.ptr)|0}var typeArray=Array.prototype.slice.call(arguments);var thrownBuf=0;HEAP32[thrownBuf&gt;&gt;2]=thrown;for(var i=0;i&lt;typeArray.length;i++){var caughtType=typeArray[i];if(caughtType===0||caughtType===thrownType){break}if(___cxa_can_catch(caughtType,thrownType,thrownBuf)){var adjusted=HEAP32[thrownBuf&gt;&gt;2];if(thrown!==adjusted){catchInfo.set_adjusted_ptr(adjusted)}return(setTempRet0(caughtType),catchInfo.ptr)|0}}return(setTempRet0(thrownType),catchInfo.ptr)|0}function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;if(!(&quot;uncaught_exception&quot;in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exceptions=1}else{__ZSt18uncaught_exceptionv.uncaught_exceptions++}throw ptr}var PATH={splitPath:function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i&gt;=0;i--){var last=parts[i];if(last===&quot;.&quot;){parts.splice(i,1)}else if(last===&quot;..&quot;){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift(&quot;..&quot;)}}return parts},normalize:function(path){var isAbsolute=path.charAt(0)===&quot;/&quot;,trailingSlash=path.substr(-1)===&quot;/&quot;;path=PATH.normalizeArray(path.split(&quot;/&quot;).filter(function(p){return!!p}),!isAbsolute).join(&quot;/&quot;);if(!path&amp;&amp;!isAbsolute){path=&quot;.&quot;}if(path&amp;&amp;trailingSlash){path+=&quot;/&quot;}return(isAbsolute?&quot;/&quot;:&quot;&quot;)+path},dirname:function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&amp;&amp;!dir){return&quot;.&quot;}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:function(path){if(path===&quot;/&quot;)return&quot;/&quot;;path=PATH.normalize(path);path=path.replace(/\/$/,&quot;&quot;);var lastSlash=path.lastIndexOf(&quot;/&quot;);if(lastSlash===-1)return path;return path.substr(lastSlash+1)},extname:function(path){return PATH.splitPath(path)[3]},join:function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join(&quot;/&quot;))},join2:function(l,r){return PATH.normalize(l+&quot;/&quot;+r)}};var PATH_FS={resolve:function(){var resolvedPath=&quot;&quot;,resolvedAbsolute=false;for(var i=arguments.length-1;i&gt;=-1&amp;&amp;!resolvedAbsolute;i--){var path=i&gt;=0?arguments[i]:FS.cwd();if(typeof path!==&quot;string&quot;){throw new TypeError(&quot;Arguments to path.resolve must be strings&quot;)}else if(!path){return&quot;&quot;}resolvedPath=path+&quot;/&quot;+resolvedPath;resolvedAbsolute=path.charAt(0)===&quot;/&quot;}resolvedPath=PATH.normalizeArray(resolvedPath.split(&quot;/&quot;).filter(function(p){return!!p}),!resolvedAbsolute).join(&quot;/&quot;);return(resolvedAbsolute?&quot;/&quot;:&quot;&quot;)+resolvedPath||&quot;.&quot;},relative:function(from,to){from=PATH_FS.resolve(from).substr(1);to=PATH_FS.resolve(to).substr(1);function trim(arr){var start=0;for(;start&lt;arr.length;start++){if(arr[start]!==&quot;&quot;)break}var end=arr.length-1;for(;end&gt;=0;end--){if(arr[end]!==&quot;&quot;)break}if(start&gt;end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split(&quot;/&quot;));var toParts=trim(to.split(&quot;/&quot;));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i&lt;length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i&lt;fromParts.length;i++){outputParts.push(&quot;..&quot;)}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join(&quot;/&quot;)}};var TTY={ttys:[],init:function(){},shutdown:function(){},register:function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)},stream_ops:{open:function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(43)}stream.tty=tty;stream.seekable=false},close:function(stream){stream.tty.ops.flush(stream.tty)},flush:function(stream){stream.tty.ops.flush(stream.tty)},read:function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(60)}var bytesRead=0;for(var i=0;i&lt;length;i++){var result;try{result=stream.tty.ops.get_char(stream.tty)}catch(e){throw new FS.ErrnoError(29)}if(result===undefined&amp;&amp;bytesRead===0){throw new FS.ErrnoError(6)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead},write:function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.put_char){throw new FS.ErrnoError(60)}try{for(var i=0;i&lt;length;i++){stream.tty.ops.put_char(stream.tty,buffer[offset+i])}}catch(e){throw new FS.ErrnoError(29)}if(length)
  
  // SIG // Begin signature block
  // SIG // MIIntAYJKoZIhvcNAQcCoIInpTCCJ6ECAQExDzANBglg
  // SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
  // SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
  </code></pre>
  <p>This is a screenshot for illustration:</p>
  <p><a href="https://i.stack.imgur.com/lzV4V.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lzV4V.jpg" alt="SS showing Exception" /></a></p>