File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
src/JavaScriptEngineSwitcher.ChakraCore Expand file tree Collapse file tree 3 files changed +7
-9
lines changed 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. Reduced a memory consumption in cases, where not used the embedding of objects and types;
26
- 2. Fixed a wrong implementation of destruction of the embedded delegates.</PackageReleaseNotes >
26
+ 2. Fixed a wrong implementation of destruction of the embedded delegates;
27
+ 3. Accelerated a conversion of script types to host types.</PackageReleaseNotes >
27
28
</PropertyGroup >
28
29
29
30
<Import Project =" ../../build/common.props" />
Original file line number Diff line number Diff line change @@ -200,7 +200,6 @@ public JsValue[] MapToScriptType(object[] args)
200
200
public object MapToHostType ( JsValue value )
201
201
{
202
202
JsValueType valueType = value . ValueType ;
203
- JsValue processedValue ;
204
203
object result ;
205
204
206
205
switch ( valueType )
@@ -212,16 +211,13 @@ public object MapToHostType(JsValue value)
212
211
result = Undefined . Value ;
213
212
break ;
214
213
case JsValueType . Boolean :
215
- processedValue = value . ConvertToBoolean ( ) ;
216
- result = processedValue . ToBoolean ( ) ;
214
+ result = value . ToBoolean ( ) ;
217
215
break ;
218
216
case JsValueType . Number :
219
- processedValue = value . ConvertToNumber ( ) ;
220
- result = NumericHelpers . CastDoubleValueToCorrectType ( processedValue . ToDouble ( ) ) ;
217
+ result = NumericHelpers . CastDoubleValueToCorrectType ( value . ToDouble ( ) ) ;
221
218
break ;
222
219
case JsValueType . String :
223
- processedValue = value . ConvertToString ( ) ;
224
- result = processedValue . ToString ( ) ;
220
+ result = value . ToString ( ) ;
225
221
break ;
226
222
case JsValueType . Object :
227
223
case JsValueType . Function :
Original file line number Diff line number Diff line change 32
32
=============
33
33
1. Reduced a memory consumption in cases, where not used the embedding of objects
34
34
and types;
35
- 2. Fixed a wrong implementation of destruction of the embedded delegates.
35
+ 2. Fixed a wrong implementation of destruction of the embedded delegates;
36
+ 3. Accelerated a conversion of script types to host types.
36
37
37
38
=============
38
39
DOCUMENTATION
You can’t perform that action at this time.
0 commit comments