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

Change invalid ICallable to throw TypeError instead of ArgumentException #794

Merged

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Oct 31, 2020

fixes #780

@lahma lahma force-pushed the non-icallable-should-throw-typerror branch from 9d748d7 to 8bac7e1 Compare October 31, 2020 16:47
@@ -1,3 +1,4 @@
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("Jint.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100bf2553c9f214cb21f1f64ed62cadad8fe4f2fa11322a5dfa1d650743145c6085aba05b145b29867af656e0bb9bfd32f5d0deb1668263a38233e7e8e5bad1a3c6edd3f2ec6c512668b4aa797283101444628650949641b4f7cb16707efba542bb754afe87ce956f3a5d43f450d14364eb9571cbf213d1061852fb9dd47a6c05c4")]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really blocking but do we have to pass the full name, and also sign it? I would assume that the simple name would just work. Or is it because it's signed? I don't remember I had to do this for other projects.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without it, Error CS1726 : Friend assembly reference 'Jint.Tests' is invalid. Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations.

@sebastienros sebastienros merged commit 4972108 into sebastienros:dev Nov 4, 2020
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

Successfully merging this pull request may close these issues.

Have typed exceptions for Jint errors
2 participants