[webidl] Callback confusion

2009-04-29 Thread Max Froumentin
Hi, I'm confused with http://dev.w3.org/2006/webapi/WebIDL/#Callback It seems that it is not possible to write: t.addListener(function() { ... }); without throwing a typeError when the callback is thrown. Does that mean that you can never write an IDL that will let you write foo(function()

Re: [webidl] Callback confusion

2009-04-29 Thread Giovanni Campagna
2009/4/29 Max Froumentin max...@opera.com: Hi, I'm confused with http://dev.w3.org/2006/webapi/WebIDL/#Callback It seems that it is not possible to write: t.addListener(function() { ... }); without throwing a typeError when the callback is thrown. Does that mean that you can never write