Skip to content

Commit

Permalink
Readonly field
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongin committed Jun 16, 2024
1 parent df90762 commit 9cad9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NodeApi/Interop/JSCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ internal sealed class JSAsyncIterableEnumerator<T> : IAsyncEnumerator<T>, IDispo
{
private readonly JSValue.To<T> _fromJS;
private readonly JSReference _iteratorReference;
private readonly CancellationToken _cancellation;
private JSReference? _currentReference;
private CancellationToken _cancellation;

internal JSAsyncIterableEnumerator(
JSValue iterable,
Expand All @@ -208,8 +208,8 @@ internal JSAsyncIterableEnumerator(
{
_fromJS = fromJS;
_iteratorReference = new JSReference(iterable.CallMethod(JSSymbol.AsyncIterator));
_currentReference = null;
_cancellation = cancellation;
_currentReference = null;
}

public async ValueTask<bool> MoveNextAsync()
Expand Down

0 comments on commit 9cad9d8

Please sign in to comment.