Hi, all!

This is a more JS-specific question, but i first noticed it because v8
allows it, and now i'm curious if it's legal JS or a v8-specific
behaviour:

Consider this code:

    try
    {
        myObj.someFuncWhichMightThrow();
    }
    finally
    {
        myObj.destroy(); // cleans up native wrapper components
    }


Notice that has no catch() block - that was an oversight which i just
noticed a few minutes ago (which got me curious). v8 apparently allows
that, but i'm not sure if ECMA does. The intention of the code is the
same as if it had a catch() like this:

    catch(e)
    {
        throw e;
    }

is the above snippet (sans catch()) legal in ECMA or only in v8?

:-?

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

Reply via email to