Skip to content

Commit

Permalink
Merge pull request #293 from kmvi/typo
Browse files Browse the repository at this point in the history
Fix typo in NativeReadOnlyListCtors.Create
  • Loading branch information
nilproject authored Aug 30, 2023
2 parents 865bfd7 + 92c555d commit 66930da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NiL.JS/Core/Interop/NativeReadOnlyList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static JSObject Create(object roList)
if (!_ctors.TryGetValue(type, out var ctor))
{
var itemType = type.GetInterface(ReadOnlyInterfaceName).GetGenericArguments()[0];
var listType = typeof(NativeReadOnlyList<>).MakeGenericType(typeof(int));
var listType = typeof(NativeReadOnlyList<>).MakeGenericType(itemType);
var prm = Expression.Parameter(typeof(object));
_ctors[type] = ctor = Expression.Lambda<Func<object, JSObject>>(
Expression.New(
Expand Down

0 comments on commit 66930da

Please sign in to comment.