Closed addaleax closed 7 years ago
(edit: answer to deleted comment)
Yeah, this obviously wouldn’t check whether a function returns a Promise but whether it was declared as async function ….
Promise
async function …
And btw, I opened this PR because V8 5.5 comes with IsAsyncFunction (which the original list here was based on).
IsAsyncFunction
sorry just deleted my comment second before you posted an answer. I was wrong. you really can check this statically. my bad :)
Going a different direction on this. Async function is covered...
(edit: answer to deleted comment)
Yeah, this obviously wouldn’t check whether a function returns a
Promise
but whether it was declared asasync function …
.And btw, I opened this PR because V8 5.5 comes with
IsAsyncFunction
(which the original list here was based on).