What steps will reproduce the problem?
1. In JavaScript, call a function on an ActiveX control that return an array
What is the expected output? What do you see instead?
I expect to get a JavaScript array as a return value. However, no value is returned
What version of the product are you using? On what operating system?
Head revision (14e849830355) on Win7
Please provide any additional information below.
I've attached a bugfix for converting a COM array to an NPVARAINT. Variant2NPVar switches on the COM Variant type. Before this fix, VT_ARRAY was a case within this switch statement. Since VT_VARIANT is a flag that is combined with the type of the elements (e.g. VT_ARRAY | VT_BSTR for an array of BSTRs), the Variant type will never equal VT_ARRAY. The case will never be hit. The patch changes the function to use a logical AND to determine if we are working with an array. The code that actually does the conversion was correct, it just was not being hit.
Owner: leeor.ah...@gmail.com