In this code example:
let result = (async (global) => {
// other code here (includes await's; thus the async)
return 123;
})(this);
The code works, but the return'ed value is nowhere to be found (not in result
). Is there any way to use a normal return statement to get data out of this function?