Re: [v8-users] Throwable that can't be caught by JavaScript.

2014-06-26 Thread Ben Noordhuis
On Thu, Jun 26, 2014 at 6:53 AM, Jane Chen jxche...@gmail.com wrote: I need a way to throw an exception from a function callback. For this type of exception, I don't want the script to catch it, but instead, I'd like v8 to throw it out to my system so that I can catch it and re-run the script.

Re: [v8-users] Throwable that can't be caught by JavaScript.

2014-06-26 Thread Jane Chen
Thanks Ben. I saw it and was thinking that could be my last resort. Does terminateExecution tear down the isolate or just terminate execution of one script? Do my cached persistent handles survive a terminateExecution? On Thursday, June 26, 2014 12:21:03 AM UTC-7, Ben Noordhuis wrote: On

Re: [v8-users] Throwable that can't be caught by JavaScript.

2014-06-26 Thread Ben Noordhuis
On Thu, Jun 26, 2014 at 6:41 PM, Jane Chen jxche...@gmail.com wrote: Thanks Ben. I saw it and was thinking that could be my last resort. Does terminateExecution tear down the isolate or just terminate execution of one script? Do my cached persistent handles survive a terminateExecution?

[v8-users] Throwable that can't be caught by JavaScript.

2014-06-25 Thread Jane Chen
I need a way to throw an exception from a function callback. For this type of exception, I don't want the script to catch it, but instead, I'd like v8 to throw it out to my system so that I can catch it and re-run the script. Does v8 provide such an API? If not, is there some kind of

Re: [v8-users] Throwable that can't be caught by JavaScript.

2014-06-25 Thread Ingwie Phoenix
Exceptions are there to be caught O.o If you want to catch a failure via your syste, consider terminating the actual process with a error message or error code, that oyur system understands. Am 26.06.2014 um 06:53 schrieb Jane Chen jxche...@gmail.com: I need a way to throw an exception from a