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

2007-12-31 Thread Darin Adler

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

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


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

2007-12-28 Thread Dan Waylonis

Hi,

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.

Thanks,
Dan
-
Dan Waylonis[EMAIL PROTECTED]
nekotech SOFTWARE
http://www.nekotech.com
650.964.2490 Voice / Fax



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev