Re: Catching exceptions

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