On Jun 5, 2012 9:10 AM, "Ms2ger" <
ms2...@gmail.com> wrote:
>
> On 06/05/2012 05:56 PM, Doug Turner wrote:
>>
>> Recently, I needed to change an IDL that was exposed to the web. It
>> was using a fixed type nsIFoo. The spec changed and I needed to be
>> able to return one of two different types: nsIFoo or nsIBar depending
>> on how the API was used. So, I changed the interface parameter to an
>> jsval.
>
>
> Let me stop you right here. Why not change it to nsISupports?
Yes. That is the correct way to do this today. XPConnect will handle the