Running async functions on Google Apps Script
问题 I am attempting to run WebAssembly on the new V8 Google Apps Script runtime, and it appears to be supported, however it seems that async functions are terminated after they return a Promise. let wasm= new Uint8Array([/* snip */]).buffer function add(a,b) { return((async()=>{ console.log("running function...") results=await WebAssembly.instantiate(wasm) return results.instance.exports.add(a,b) })()); } function test(){ add(2,3).then(console.log).catch(console.error) } when I run test "running