Re: [whatwg] Error propagation in child workers

2008-12-27 Thread ben turner
I'm implementing these latest changes and it looks like there are some typos in this edit: - The ErrorEvent interface has a 'fileno' property, not a 'lineno' property as mentioned elsewhere. I believe it should be 'lineno'. - There's a stray 'span' before 'queue a task'. Then I have a few more

Re: [whatwg] Error propagation in child workers

2008-12-27 Thread Ian Hickson
On Sat, 27 Dec 2008, ben turner wrote: I'm implementing these latest changes and it looks like there are some typos in this edit: - The ErrorEvent interface has a 'fileno' property, not a 'lineno' property as mentioned elsewhere. I believe it should be 'lineno'. - There's a stray

Re: [whatwg] Error propagation in child workers

2008-12-24 Thread Jonas Sicking
On Wed, Dec 24, 2008 at 12:51 AM, Ian Hickson i...@hixie.ch wrote: On Tue, 23 Dec 2008, Jonas Sicking wrote: I ended up using a combination of both the event mechanism and the old Window.onerror mechanism. The spec now says to fire onerror in the worker global scope, using the old

Re: [whatwg] Error propagation in child workers

2008-12-23 Thread Ian Hickson
On Tue, 16 Dec 2008, Jonas Sicking wrote: Ian Hickson wrote: On Thu, 27 Nov 2008, ben turner wrote: Assuming we have a page that creates a worker (let's call this worker the parent), and it creates a new worker (the child). First, we currently use a MessageEvent object for our

Re: [whatwg] Error propagation in child workers

2008-12-23 Thread Jonas Sicking
On Tue, Dec 23, 2008 at 4:10 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 16 Dec 2008, Jonas Sicking wrote: Ian Hickson wrote: On Thu, 27 Nov 2008, ben turner wrote: Assuming we have a page that creates a worker (let's call this worker the parent), and it creates a new worker (the

Re: [whatwg] Error propagation in child workers

2008-12-23 Thread ben turner
Yes, I agree, try/catch works just as well for that. The only thing we really need is a way to communicate errors to the parent IMO. -Ben On Tue, Dec 23, 2008 at 5:07 PM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Dec 23, 2008 at 4:10 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 16 Dec

Re: [whatwg] Error propagation in child workers

2008-12-23 Thread Ian Hickson
On Tue, 23 Dec 2008, Jonas Sicking wrote: I ended up using a combination of both the event mechanism and the old Window.onerror mechanism. The spec now says to fire onerror in the worker global scope, using the old mechanism, and if that doesn't handle the error then a series of

Re: [whatwg] Error propagation in child workers

2008-12-16 Thread Ian Hickson
On Thu, 27 Nov 2008, ben turner wrote: I just got around to fixing the error handling in our worker implementation and realized that the spec is a little vague here, especially when workers are created within workers. This is what we have now, and Jonas and I both find it intuitive and

Re: [whatwg] Error propagation in child workers

2008-12-16 Thread Jonas Sicking
Ian Hickson wrote: On Thu, 27 Nov 2008, ben turner wrote: I just got around to fixing the error handling in our worker implementation and realized that the spec is a little vague here, especially when workers are created within workers. This is what we have now, and Jonas and I both find it

[whatwg] Error propagation in child workers

2008-11-26 Thread ben turner
Hey folks, I just got around to fixing the error handling in our worker implementation and realized that the spec is a little vague here, especially when workers are created within workers. This is what we have now, and Jonas and I both find it intuitive and useful: Assuming we have a page that