SerialFunctionDispatcher already implements assertIsCurrent() in debug mode. RunLoop, a SerialFunctionDispatcher already implement isCurrent(). We should expand isCurrent() to be available on all SerialFunctionDispatcher, the change is trivial considering all versions already implement assertIsCurrent() which contains all the required logic to do so. This will also be required for the new C++ Promise's directFunctionDispatch mode (bug pending)
<rdar://problem/114801460>
Pull request: https://github.com/WebKit/WebKit/pull/17342
Committed 267808@main (cce771ba5390): <https://commits.webkit.org/267808@main> Reviewed commits have been landed. Closing PR #17342 and removing active labels.