new Function()
works like an indirect eval call, which always executes in the global scope.
The Promise.allSettled()
method returns a promise that resolves after all of the given promises have either resolved or rejected, with an array of objects that each describes the outcome of each promise.