An iOS Application can use JavaScriptCore / JSContext without WebKit. In this path, the WTF WebCoreWebThread functions have not been initialized yet, and isMainThread with USE(WEB_THREAD) assumes it is and calls WebCoreWebThreadIsLockedOrDisabled and causes a crash. We should not assume that the function pointer has been filled in, as will be the case when this is used outside of a web environment.
<rdar://problem/16095242>
Created attachment 224478 [details] [PATCH] Proposed Fix
Comment on attachment 224478 [details] [PATCH] Proposed Fix r=me
Comment on attachment 224478 [details] [PATCH] Proposed Fix Clearing flags on attachment: 224478 Committed r164301: <http://trac.webkit.org/changeset/164301>
All reviewed patches have been landed. Closing bug.