Skip to content

Commit c53d5c5

Browse files
committed
In JavaScriptEngineSwitcher.Jint the implementation of script interruption has been slightly improved
1 parent 5c353eb commit c53d5c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/JavaScriptEngineSwitcher.Jint/JintJsEngine.cs

+2
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ private WrapperRuntimeException WrapRuntimeException(OriginalRuntimeException or
292292
}
293293
else if (originalRuntimeException is OriginalExecutionCanceledException)
294294
{
295+
_cancellationTokenSource.Dispose();
295296
_cancellationTokenSource = new CancellationTokenSource();
297+
296298
_cancellationConstraint.Reset(_cancellationTokenSource.Token);
297299

298300
type = JsErrorType.Common;

0 commit comments

Comments
 (0)