File tree 3 files changed +13
-11
lines changed
src/JavaScriptEngineSwitcher.ChakraCore
3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public sealed class ChakraCoreJsEngine : JsEngineBase
93
93
/// <summary>
94
94
/// Script dispatcher
95
95
/// </summary>
96
- private readonly ScriptDispatcher _dispatcher ;
96
+ private ScriptDispatcher _dispatcher ;
97
97
98
98
/// <summary>
99
99
/// Unique document name manager
@@ -1689,16 +1689,15 @@ private void Dispose(bool disposing)
1689
1689
{
1690
1690
if ( _dispatcher != null )
1691
1691
{
1692
- _dispatcher . Invoke ( ( ) =>
1693
- {
1694
- if ( _jsContext . IsValid )
1695
- {
1696
- _jsContext . Release ( ) ;
1697
- }
1698
- _jsRuntime . Dispose ( ) ;
1699
- } ) ;
1700
1692
_dispatcher . Dispose ( ) ;
1693
+ _dispatcher = null ;
1694
+ }
1695
+
1696
+ if ( _jsContext . IsValid )
1697
+ {
1698
+ _jsContext . Release ( ) ;
1701
1699
}
1700
+ _jsRuntime . Dispose ( ) ;
1702
1701
1703
1702
if ( disposing )
1704
1703
{
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ This package does not contain the native implementations of ChakraCore. Therefor
23
23
<PackageIconUrl >https://raw.githubusercontent.com/Taritsyn/JavaScriptEngineSwitcher/master/Icons/JavaScriptEngineSwitcher_ChakraCore_Logo128x128.png</PackageIconUrl >
24
24
<PackageTags >JavaScriptEngineSwitcher;JavaScript;ECMAScript;ChakraCore</PackageTags >
25
25
<PackageReleaseNotes >1. Added support of .NET Framework 4.7.1;
26
- 2. Fixed a implementation of the `JsSerializedLoadScriptCallback` delegate.</PackageReleaseNotes >
26
+ 2. Fixed a implementation of the `JsSerializedLoadScriptCallback` delegate;
27
+ 3. Fixed a error #34 “Finalazier thread is blocked because of JavaScriptEngineSwitcher.ChakraCore.ChakraCoreJsEngine”.</PackageReleaseNotes >
27
28
</PropertyGroup >
28
29
29
30
<Import Project =" ../../build/common.props" />
Original file line number Diff line number Diff line change 31
31
RELEASE NOTES
32
32
=============
33
33
1. Added support of .NET Framework 4.7.1;
34
- 2. Fixed a implementation of the `JsSerializedLoadScriptCallback` delegate.
34
+ 2. Fixed a implementation of the `JsSerializedLoadScriptCallback` delegate;
35
+ 3. Fixed a error #34 “Finalazier thread is blocked because of
36
+ JavaScriptEngineSwitcher.ChakraCore.ChakraCoreJsEngine”.
35
37
36
38
=============
37
39
DOCUMENTATION
You can’t perform that action at this time.
0 commit comments