durs / node-activex

Node.JS Implementaion of ActiveXObject
MIT License
329 stars 62 forks source link

Question about "Function Setter" limitation #116

Open tom-inetum-realdolmen opened 2 years ago

tom-inetum-realdolmen commented 2 years ago

Hello, First of all a big THANK YOU for this nodejs module! It is nice to see how modern and proven technology can go hand in hand.

You mentioned the "Function Setter" in your Readme Limitation settings. You mention it is a limitation of v8.

Can you elaborate a bit on this? Is there any way to circumvent this limitation or have you logged an issue on node-gyp?

I want to use an application automation (based on ActiveX) and its documentation regularly mentions the setting of function indices.

Thank you for the feedback!

durs commented 1 year ago

Hello, sorry for the long response. I didn't write this passage in the readme, but it’s obvious here that these are limitations of the Javascript syntax. But you can always find a suitable replacement. But we need to consider a more specific example, usually instead of obj(index) = value use obj[index] = value or obj(index).value = value or obj.set(index, value)