W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] Proposal: Add window.getLastError (or modify invocation arguments of window.onerror)

From: Simon Pieters <simonp@opera.com>
Date: Thu, 29 Nov 2012 10:07:42 +0100
To: "James Greene" <james.m.greene@gmail.com>, "Ian Hickson" <ian@hixie.ch>
Message-ID: <op.woi2a4w6idj3kv@simon-pieterss-macbook.local>
Cc: whatwg@whatwg.org
On Thu, 29 Nov 2012 04:35:21 +0100, Ian Hickson <ian@hixie.ch> wrote:

> Having the exception object, if any, in the onerror callback, seems
> reasonable, and would indeed limit how many more arguments we may have to
> add over the years. It seems that providing it as an argument would be
> better than as a global, though.

One question is what should happen with exceptions that propagate upwards  
in the case of dedicated workers. Should a new exception object be created  
for each worker up the chain, and finally for window? ErrorEvent would  
also need a new member for this.

-- 
Simon Pieters
Opera Software
Received on Thursday, 29 November 2012 09:08:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT