Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about "Function Setter" limitation #116

Open
tom-inetum-realdolmen opened this issue Nov 1, 2022 · 1 comment
Open

Question about "Function Setter" limitation #116

tom-inetum-realdolmen opened this issue Nov 1, 2022 · 1 comment

Comments

@tom-inetum-realdolmen
Copy link

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
Copy link
Owner

durs commented Mar 25, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants