Passing variant Array (can contain number, string...) to JS-XPCOM from C++

2014-08-13 Thread Shanmugham Sundaram
Hi, I have to pass an array of strings (or JS::Value array) to JS-XPCOM from my C++ code. I could not find the proper example in C++ to implements this. Based on the "jsFunction" I am passing in JS-XPCOM, i will extract the correct number of values in the JS and call the expected function. Ho

Re: Passing variant Array (can contain number, string...) to JS-XPCOM from C++

2014-08-13 Thread Bobby Holley
If this is from a binary component, i would advise against passing JSVals directly, because the APIs you need to manipulate are no longer exported (they're still temporarily exported in Windows IIUC, but that's changing soon). See https://bugzilla.mozilla.org/show_bug.cgi?id=978995 Instead, you mi

Re: Passing variant Array (can contain number, string...) to JS-XPCOM from C++

2014-08-13 Thread Shanmugham Sundaram
Thanks Bholly. regards, Shan' On Wednesday, August 13, 2014 8:48:40 PM UTC+5:30, Bobby Holley wrote: > If this is from a binary component, i would advise against passing > > JSVals directly, because the APIs you need to manipulate are no longer > > exported (they're still temporarily exported i