-
-
Notifications
You must be signed in to change notification settings - Fork 547
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
Exception when trying to pass object as method parameter #1094
Comments
Would you like to create a PR fixing the issue, accompanied with a test case? Might be enough to create custom |
I'm new to jint and I don't really know how it works. I don't think I can fix it 😕 |
All good, thanks for the bug report. We'll try to investigate when we find the time. |
@KubaZ2 there was a bug in resolution algorithm that caused Jint to choose wrong overload in this case. You also need to set jint/Jint.Tests/Runtime/InteropTests.cs Lines 2770 to 2780 in 0231800
There should be a build on MyGet feed soon (on NuGet later), see README on repo root how to access it. |
And with #1099 merged you shouldn't even need to allow operator overloading, it's allowed by default with latest soon to be on MyGet version. |
Cannot pass DiscordId as method parameter. It throws
System.ArgumentException: 'Object of type 'System.String' cannot be converted to type 'System.UInt64'.'
The text was updated successfully, but these errors were encountered: