I'm trying to fill this array in JS but it doesn't work.
var array =
Components.classes["@mozilla.org/array;1"].createInstance(Components.interfaces.nsIMutableArray);
array.appendElement("ABC", false);
Error: uncaught exception: [Exception... "Could not convert JavaScript
argument arg 0 [nsIMutableArray.appendElement]" nsresult: "0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: javascript:
array.appendElement("ABC", false); :: <TOP_LEVEL> :: line 1" data: no]
Honza T_
--
|-| () |\| 7_ /-\ T.
ICQ: 134810196
MSN: [EMAIL PROTECTED]
mail: [EMAIL PROTECTED]
mail: [EMAIL PROTECTED]
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom