[whatwg] Questions on error handling in web workers
ian at hixie.ch
Wed Jun 15 23:02:52 PDT 2011
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:
> Separately, Yury Semikhatsky got it mixed up here:
> And a number of us (Jian Li, etc.) were confused about it.
> We can see that Ben Turner also found it confusing:
> 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:
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?
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