[webkit-dev] Cancel non-terminating JavaScriptCore JSEvaluate()?

Darin Adler darin at apple.com
Mon Dec 31 14:20:55 PST 2007

On Dec 28, 2007, at 2:35 PM, Dan Waylonis wrote:

> If I send some non-terminating code (e.g., while(1);) to  
> JSEvaluate(), is there a way to have a "watchdog" thread/timer  
> notice that JSEvaluate() is not terminating (after some amount of  
> time) and cancel the code evaluation?
> I seem to remember reading that Safari3 has something like this.

WebKit does have this feature. However, the JavaScriptCore API does  
not export the feature so that you can use it with functions like  
JSEvaluate. That's something that will have to be added for a future  
version of the API.

     -- Darin

More information about the webkit-dev mailing list