Skip to content

Commit

Permalink
fix interface methods
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzx86 committed Sep 19, 2023
1 parent 29b67f8 commit 4d08a91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jint/Runtime/Interop/TypeResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ void AddMethod(MethodInfo m)
{
AddMethod(m);
}
foreach (var iface in type.GetInterfaces())
foreach (var m in iface.GetMethods(bindingFlags))
{
AddMethod(m);
}

// TPC: need to grab the extension methods here - for overloads
if (engine._extensionMethods.TryGetExtensionMethods(type, out var extensionMethods))
Expand Down

0 comments on commit 4d08a91

Please sign in to comment.