W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] Questions on error handling in web workers

From: Jian Li <jianli@chromium.org>
Date: Wed, 15 Jul 2009 17:09:44 -0700
Message-ID: <a95818c30907151709l27f03e23w9db83786d8cdf454@mail.gmail.com>
I have a couple questions regarding error handling in HTML 5 workers.
In the spec, it says "Whenever a runtime script error occurs in one of the
worker's scripts, if the error did not occur while handling a previous
script error, the user agent must report the error using the
WorkerGlobalScope object's onerror attribute.". Does it mean that onerror
attribute of WorkerContext would be called? In addition to the errors being
thrown?

The spec also says "For dedicated workers, if the error is still not handled
afterwards, or if the error occurred while handling a previous script error,
the user agent must queue a task to fire a worker error event at the Worker
object associated with the worker.".  What does it mean by "the error is
still not handled afterwards"? Does it mean that the onerror attribute is
not set for WorkerContext?

Thanks,

Jian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090715/ed1cb353/attachment.htm>
Received on Wednesday, 15 July 2009 17:09:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC