File tree Expand file tree Collapse file tree 5 files changed +24
-20
lines changed
src/JavaScriptEngineSwitcher.Jint Expand file tree Collapse file tree 5 files changed +24
-20
lines changed Original file line number Diff line number Diff line change @@ -24,27 +24,31 @@ internal static class JintJsErrorHelpers
2424 private const string WrapperAnonymousFunctionName = "Anonymous function" ;
2525 private const string DelegateFunctionName = "delegate" ;
2626
27+ /// <summary>
28+ /// Pattern for working with document names with coordinates
29+ /// </summary>
30+ private static readonly string DocumentNameWithCoordinatesPattern =
31+ @"(?<documentName>" + CommonRegExps . DocumentNamePattern + @"):" +
32+ @"(?<lineNumber>\d+)(?::(?<columnNumber>\d+))?" ;
33+
2734 /// <summary>
2835 /// Regular expression for working with line of the script error location
2936 /// </summary>
3037 private static readonly Regex _errorLocationLineRegex =
31- new Regex ( @"^[ ]{3 }at " +
38+ new Regex ( @"^[ ]{4 }at " +
3239 @"(?:" +
33- @"(?:" +
34- @"(?<functionName>" +
35- @"[\w][\w ]*" +
36- @"|" +
37- CommonRegExps . JsFullNamePattern +
38- @"|" +
39- Regex . Escape ( OriginalAnonymousFunctionName ) +
40- @") " +
41- @"\((?:" + CommonRegExps . JsFullNamePattern + @"(?:, " + CommonRegExps . JsFullNamePattern + @")*)?\)" +
40+ @"(?<functionName>" +
41+ @"[\w][\w ]*" +
42+ @"|" +
43+ CommonRegExps . JsFullNamePattern +
4244 @"|" +
43- @"(?<functionName>" + Regex . Escape ( DelegateFunctionName ) + @")" +
45+ Regex . Escape ( OriginalAnonymousFunctionName ) +
4446 @") " +
45- @")?" +
46- @"(?<documentName>" + CommonRegExps . DocumentNamePattern + @"):" +
47- @"(?<lineNumber>\d+)(?::(?<columnNumber>\d+))?$" ) ;
47+ @"\(" + DocumentNameWithCoordinatesPattern + @"\)" +
48+ @"|" +
49+ DocumentNameWithCoordinatesPattern +
50+ @")" +
51+ "$" ) ;
4852
4953 /// <summary>
5054 /// Regular expression for working with the syntax error message
Original file line number Diff line number Diff line change 2222 <PackageIconFullPath >../../Icons/JavaScriptEngineSwitcher_Jint_Logo128x128.png</PackageIconFullPath >
2323 <Description >JavaScriptEngineSwitcher.Jint contains a `JintJsEngine` adapter (wrapper for the Jint).</Description >
2424 <PackageTags >$(PackageCommonTags);Jint</PackageTags >
25- <PackageReleaseNotes >Jint was updated to version 4.2.2 .</PackageReleaseNotes >
25+ <PackageReleaseNotes >Jint was updated to version 4.3.0 .</PackageReleaseNotes >
2626 </PropertyGroup >
2727
2828 <ItemGroup >
29- <PackageReference Include =" Jint" Version =" 4.2.2 " />
29+ <PackageReference Include =" Jint" Version =" 4.3.0 " />
3030
3131 <ProjectReference Include =" ../JavaScriptEngineSwitcher.Core/JavaScriptEngineSwitcher.Core.csproj" />
3232 </ItemGroup >
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public sealed class JintJsEngine : JsEngineBase
5151 /// <summary>
5252 /// Version of original JS engine
5353 /// </summary>
54- private const string EngineVersion = "4.2.2 " ;
54+ private const string EngineVersion = "4.3.0 " ;
5555
5656 /// <summary>
5757 /// Jint JS engine
Original file line number Diff line number Diff line change 1- JavaScriptEngineSwitcher.Jint contains a ` JintJsEngine ` adapter (wrapper for the [ Jint] ( http://github.com/sebastienros/jint ) version 4.2.2 ).
1+ JavaScriptEngineSwitcher.Jint contains a ` JintJsEngine ` adapter (wrapper for the [ Jint] ( http://github.com/sebastienros/jint ) version 4.3.0 ).
Original file line number Diff line number Diff line change 1212 DESCRIPTION
1313 ===========
1414 JavaScriptEngineSwitcher.Jint contains a `JintJsEngine` adapter (wrapper for the
15- Jint (http://github.com/sebastienros/jint) version 4.2.2 ).
15+ Jint (http://github.com/sebastienros/jint) version 4.3.0 ).
1616
1717 =============
1818 RELEASE NOTES
1919 =============
20- Jint was updated to version 4.2.2 .
20+ Jint was updated to version 4.3.0 .
2121
2222 =============
2323 DOCUMENTATION
You can’t perform that action at this time.
0 commit comments