[webkit-dev] Crashing Workers Code?

Darin Adler darin at apple.com
Mon Mar 29 17:26:35 PDT 2010

On Mar 29, 2010, at 5:14 PM, Dmitry Titov wrote:

> JSC workers are terminated by setting a 1-ms timeout. V8 workers terminate by throwing exception of a special kind and then checking for it in C++ code.

There is precedent in JavaScriptCore for using a special exception to terminate code. InterruptedExecutionError is used for this purpose. I could imagine having something similar for workers. A timeout sounds like a poor way to do it.

    -- Darin

More information about the webkit-dev mailing list