Many thanks !

I've finaly learned finaly ^^

Florent Steiner


On Thu, Oct 2, 2008 at 11:46 AM, Ondrej Zara <[EMAIL PROTECTED]> wrote:

> Hi Florent,
>
>
>> So remove the f****g finaly !
>> This keyword doesnt have any use ...
>>
>> function test() {
>>   try {
>>    some stuff
>>   } catch(e) {
>>    throw new Error("I want to report this via standard error catcher");
>>   }
>>    return safe_value;
>>   }
>>
>> Florent Steiner
>>
>
>
> unfortunately, this won't work: error which happens in "try" clause stops
> further execution of this function (and any "return" statements which
> follow). The only code which can be executed after error must be located in
> "finally" block.
>
> O.
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to