W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

Re: Catching exceptions

From: Rick Waldron <waldron.rick@gmail.com>
Date: Tue, 2 Apr 2013 10:34:43 -0400
Message-ID: <CAHfnhfq5Yq6hc+SOckvC6stZ+4dfnnZM1bdFSMLkR0_ad5U24Q@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>, Allen Wirfs-Brock <allen@wirfs-brock.com>
cc +AWB

I think you're looking for 8.2.3 The Completion Record Specification Type
in the ES6 spec draft. I'm cc'ing Allen, as he can better help you with
these mechanisms.

Rick


On Tue, Apr 2, 2013 at 10:27 AM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Tue, Apr 2, 2013 at 3:16 PM, Rick Waldron <waldron.rick@gmail.com>
> wrote:
> > Using PutValue and [[Put]] as an example (
> http://es5.github.com/#x8.7.2)...
> >
> > PutValue makes calls to [[Put]], with arguments: property, descriptor and
> > throw. In 3.b, the Throw flag is explicitly set to false, in 4.b the
> Throw
> > flag is set to boolean value returned by isStrictReference(v) (where v is
> > the lhs of an assignment). In [[Put]], the value of the Throw flag is
> used
> > on 2.a, 4.a, and 7.a in conjunction with the results of other
> operations, to
> > determine whether or not a TypeError exception will be thrown.
> >
> > I believe the same or a similar specification mechanism can be used.
>
> I do not see how that can be used for callbacks. Basically, what is
> required is the English-prose variant of try/catch.
>
> http://dom.spec.whatwg.org/#concept-future-wrapper-callback is what I
> have now.
>
>
> --
> http://annevankesteren.nl/
>
Received on Tuesday, 2 April 2013 14:35:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:48 UTC