proposal-async-do-expressions
proposal-async-do-expressions copied to clipboard
Is new.target and arguments accessible inside the async do expression?
function x(a) {
return async do {
await sleep(2000)
arguments[0] = 1
}
}
It should be, since it’s not a function so it doesn’t shadow the binding.
Ditto for super.method when within a method-type function.