DescriptionAdd 'error' property to exceptions thrown via Worker::importScripts.
If an imported script throws an exception, and the script is same-origin
with the Worker, we should provide the exception object when handling
the exception via 'self.onerror'. The exception should not, however, be
available to the page-level 'window.onerror' (we'd be leaking state
across worlds otherwise (also, the spec says not to[1])).
This patch pulls the logic governing the exception object's storage
(wrapping the ErrorEvent, storing the value on a hidden property) out of
V8Initializer, and moves it to a static method on V8ErrorHandler so that
it's easily reusable inside WorkerScriptController.
[1]: http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#runtime-script-errors-0
BUG=270005
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155953
Patch Set 1 #
Total comments: 9
Patch Set 2 : Feedback. #
Messages
Total messages: 11 (0 generated)
|