Assume I have somewhere in my javascript code async function doSomething() {}
and somewhere else I call this function without trying to fulfill it.
Just doSomething();
Not await doSomething()
. (neither doSomething().then()
).
How do I find all these occurrences?
I just spent 10 hours chasing after an unknown promise that got resolved at some random point due to a missing await
before the function call. I wish there is a way to find them all.