File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
NuGet/JavaScriptEngineSwitcher.ChakraCore
src/JavaScriptEngineSwitcher.ChakraCore Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Change log
2
2
==========
3
3
4
4
## June 26, 2017 - v2.4.7
5
- * In JavaScriptEngineSwitcher.ChakraCore now the original exception is added to instance of the ` JsRuntimeException ` class as an internal exception
5
+ * In JavaScriptEngineSwitcher.ChakraCore now the original exception is added to instance of the ` JsRuntimeException ` class as an inner exception
6
6
7
7
## June 16, 2017 - v2.4.6
8
8
* In JavaScriptEngineSwitcher.ChakraCore added support of ChakraCore version 1.5.2
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ This package does not contain the native implementations of ChakraCore. Therefor
20
20
* JavaScriptEngineSwitcher.ChakraCore.Native.debian-x64
21
21
* JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64</description >
22
22
<summary >JavaScriptEngineSwitcher.ChakraCore contains adapter `ChakraCoreJsEngine` (wrapper for the ChakraCore).</summary >
23
- <releaseNotes >Now the original exception is added to instance of the `JsRuntimeException` class as an internal exception .</releaseNotes >
23
+ <releaseNotes >An attempt was made to prevent a blocking of finalizer's thread .</releaseNotes >
24
24
<copyright >Copyright (c) 2013-2017 Andrey Taritsyn - http://www.taritsyn.ru</copyright >
25
25
<language >en-US</language >
26
26
<tags >JavaScriptEngineSwitcher JavaScript ECMAScript ChakraCore</tags >
Original file line number Diff line number Diff line change 30
30
=============
31
31
RELEASE NOTES
32
32
=============
33
- Now the original exception is added to instance of the `JsRuntimeException`
34
- class as an internal exception.
33
+ An attempt was made to prevent a blocking of finalizer's thread.
35
34
36
35
=============
37
36
DOCUMENTATION
Original file line number Diff line number Diff line change @@ -142,12 +142,15 @@ private void EnqueueTask(ScriptTask task)
142
142
/// <returns>Result of the delegate invocation</returns>
143
143
private object InnnerInvoke ( Func < object > del )
144
144
{
145
- var waitHandle = new ManualResetEvent ( false ) ;
146
- var task = new ScriptTask ( del , waitHandle ) ;
147
- EnqueueTask ( task ) ;
145
+ ScriptTask task ;
148
146
149
- waitHandle . WaitOne ( ) ;
150
- waitHandle . Dispose ( ) ;
147
+ using ( var waitHandle = new ManualResetEvent ( false ) )
148
+ {
149
+ task = new ScriptTask ( del , waitHandle ) ;
150
+ EnqueueTask ( task ) ;
151
+
152
+ waitHandle . WaitOne ( ) ;
153
+ }
151
154
152
155
if ( task . Exception != null )
153
156
{
You can’t perform that action at this time.
0 commit comments