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

Re: Catching exceptions

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 2 Apr 2013 15:27:03 +0100
Message-ID: <CADnb78geWV9Ao+NPMnN6vWcUogDNjSHQ=XXp_5TA8oxn-3FgCA@mail.gmail.com>
To: Rick Waldron <waldron.rick@gmail.com>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
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:27:30 UTC

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