Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kmvi committed Aug 29, 2023
1 parent 865bfd7 commit 92c555d
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 92c555d

Please sign in to comment.