[whatwg] Questions on error handling in web workers

David Levin levin at chromium.org
Wed Jun 15 23:19:48 PDT 2011


On Wed, Jun 15, 2011 at 11:02 PM, Ian Hickson <ian at hixie.ch> wrote:

> On Wed, 15 Jun 2011, David Levin wrote:
> >
> > The wording in the Web Workers part of the spec about what to do for
> > onerror has confused a number of people.
> >
> > Recently, when asked about it, I thought that it should send through an
> > ErrorEvent when I was pointed at the spec (even though I had seen this
> > issue before).
> >
> > Owen Merkling added a repro case here under that assumption:
> >     https://bugs.webkit.org/show_bug.cgi?id=35302
> >
> > Separately, Yury Semikhatsky got it mixed up here:
> >     https://bugs.webkit.org/show_bug.cgi?id=36375
> > And a number of us (Jian Li, etc.) were confused about it.
> >
> > We can see that Ben Turner also found it confusing:
> > https://bugzilla.mozilla.org/show_bug.cgi?id=664650
> >
> > Hopefully, the spec can be clarified in this regard to avoid
> > incompatibilities and confusion among implementors. One possible
> > clarification would be a link in the onerror section for Web Workers to
> > indicate that they use this definition:
> > http://www.whatwg.org/specs/web-apps/current-work/#report-the-error
>
> I spoke to bent earlier this evening, and tried to make some minor
> modifications to the spec to help make this clearer. Can you take a look
> and see if it's any better?
>

I see that there is a link for "report the error" in the section
"10.2.6 Runtime
script errors"

I'm guessing that was part of your modifications. I think that does the
trick.

Thanks,
dave



>
> If it's not, can you elaborate on what exactly is confusing? I tried to
> answer a question bent was asking but I am so familiar with the style that
> the spec is written in that I found the answer straight away and didn't
> see anything confusing, which doesn't help me make it better! :-)
>
> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>



More information about the whatwg mailing list