WebCore JavaScript context can never be used on secondary threads, because any such use can cause GC to happen, and thus a lot of DOM code to run on this thread. We need some assertions to more easily catch such conditions with debug builds.
Created attachment 39473 [details] proposed patch
Comment on attachment 39473 [details] proposed patch r=me Is there an efficient way to make this assertion in release builds too, like we do for some WebKit APIs?
Committed revision 48315. > Is there an efficient way to make this assertion in release builds too, like we > do for some WebKit APIs? It's hard for me to estimate - how do we measure JSC API overhead?