File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
src/JavaScriptEngineSwitcher.V8 Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 6
6
internal static class DllName
7
7
{
8
8
public const string ClearScriptV8Universal = "ClearScriptV8" ;
9
- public const string V8LibCpp32Bit = "v8-libcpp-ia32.dll" ;
10
- public const string V8LibCpp64Bit = "v8-libcpp-x64.dll" ;
9
+ public const string V8Prefix = "v8-" ;
10
+ public const string V8Postfix32Bit = "-ia32.dll" ;
11
+ public const string V8Postfix64Bit = "-x64.dll" ;
11
12
}
12
13
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ This package does not contain the native ClearScript and V8 assemblies. Therefor
17
17
* JavaScriptEngineSwitcher.V8.Native.win-x64</Description >
18
18
<PackageIcon >icon.png</PackageIcon >
19
19
<PackageTags >JavaScriptEngineSwitcher;JavaScript;ECMAScript;V8;ClearScript</PackageTags >
20
- <PackageReleaseNotes >Microsoft ClearScript.V8 was updated to version 6.0.1 .</PackageReleaseNotes >
20
+ <PackageReleaseNotes >Fixed a error that caused incorrect generation of error description for an `JsEngineLoadException` exception .</PackageReleaseNotes >
21
21
</PropertyGroup >
22
22
23
23
<Import Project =" ../../build/common.props" />
Original file line number Diff line number Diff line change @@ -328,10 +328,11 @@ private static WrapperEngineLoadException WrapTypeLoadException(
328
328
StringBuilder descriptionBuilder = stringBuilderPool . Rent ( ) ;
329
329
descriptionBuilder . AppendFormat ( CoreStrings . Engine_AssemblyNotFound , assemblyFileName ) ;
330
330
descriptionBuilder . Append ( " " ) ;
331
- if ( assemblyFileName == DllName . V8LibCpp64Bit || assemblyFileName == DllName . V8LibCpp32Bit )
331
+ if ( assemblyFileName . StartsWith ( DllName . V8Prefix )
332
+ && ( assemblyFileName . EndsWith ( DllName . V8Postfix64Bit ) || assemblyFileName . EndsWith ( DllName . V8Postfix32Bit ) ) )
332
333
{
333
334
descriptionBuilder . AppendFormat ( CoreStrings . Engine_NuGetPackageInstallationRequired ,
334
- assemblyFileName == DllName . V8LibCpp64Bit ?
335
+ assemblyFileName . EndsWith ( DllName . V8Postfix64Bit ) ?
335
336
"JavaScriptEngineSwitcher.V8.Native.win-x64"
336
337
:
337
338
"JavaScriptEngineSwitcher.V8.Native.win-x86"
Original file line number Diff line number Diff line change 25
25
=============
26
26
RELEASE NOTES
27
27
=============
28
- Microsoft ClearScript.V8 was updated to version 6.0.1.
28
+ Fixed a error that caused incorrect generation of error description for an
29
+ `JsEngineLoadException` exception.
29
30
30
31
=============
31
32
DOCUMENTATION
You can’t perform that action at this time.
0 commit comments