@@ -26,12 +26,12 @@ public sealed class JintJsEngine : JsEngineBase
2626 /// <summary>
2727 /// Name of JS engine
2828 /// </summary>
29- private const string ENGINE_NAME = "Jint JS engine " ;
29+ public const string EngineName = "JintJsEngine " ;
3030
3131 /// <summary>
3232 /// Version of original JS engine
3333 /// </summary>
34- private const string ENGINE_VERSION = "2.9.1" ;
34+ private const string EngineVersion = "2.9.1" ;
3535
3636 /// <summary>
3737 /// Jint JS engine
@@ -48,15 +48,15 @@ public sealed class JintJsEngine : JsEngineBase
4848 /// </summary>
4949 public override string Name
5050 {
51- get { return ENGINE_NAME ; }
51+ get { return EngineName ; }
5252 }
5353
5454 /// <summary>
5555 /// Gets a version of original JS engine
5656 /// </summary>
5757 public override string Version
5858 {
59- get { return ENGINE_VERSION ; }
59+ get { return EngineVersion ; }
6060 }
6161
6262
@@ -90,7 +90,7 @@ public JintJsEngine(JintSettings settings)
9090 {
9191 throw new JsEngineLoadException (
9292 string . Format ( CoreStrings . Runtime_JsEngineNotLoaded ,
93- ENGINE_NAME , e . Message ) , ENGINE_NAME , ENGINE_VERSION , e ) ;
93+ EngineName , e . Message ) , EngineName , EngineVersion , e ) ;
9494 }
9595 }
9696
@@ -135,7 +135,7 @@ private JsRuntimeException ConvertParserExceptionToJsRuntimeException(
135135 message = jsParserException . Message ;
136136 }
137137
138- var jsRuntimeException = new JsRuntimeException ( message , ENGINE_NAME , ENGINE_VERSION ,
138+ var jsRuntimeException = new JsRuntimeException ( message , EngineName , EngineVersion ,
139139 jsParserException )
140140 {
141141 Category = "ParserError" ,
@@ -165,7 +165,7 @@ private JsRuntimeException ConvertJavaScriptExceptionToJsRuntimeException(
165165 }
166166 }
167167
168- var jsRuntimeException = new JsRuntimeException ( jsException . Message , ENGINE_NAME , ENGINE_VERSION ,
168+ var jsRuntimeException = new JsRuntimeException ( jsException . Message , EngineName , EngineVersion ,
169169 jsException )
170170 {
171171 Category = category ,
@@ -185,7 +185,7 @@ private JsRuntimeException ConvertRecursionDepthOverflowExceptionToJsRuntimeExce
185185 jsRecursionException . CallChain ) ;
186186
187187 var jsRuntimeException = new JsRuntimeException ( message ,
188- ENGINE_NAME , ENGINE_VERSION , jsRecursionException )
188+ EngineName , EngineVersion , jsRecursionException )
189189 {
190190 Category = "RecursionDepthOverflowError" ,
191191 Source = jsRecursionException . Source ,
@@ -199,7 +199,7 @@ private JsRuntimeException ConvertStatementsCountOverflowExceptionToJsRuntimeExc
199199 OriginalStatementsCountOverflowException jsStatementsException )
200200 {
201201 var jsRuntimeException = new JsRuntimeException ( Strings . Runtime_StatementsCountOverflow ,
202- ENGINE_NAME , ENGINE_VERSION )
202+ EngineName , EngineVersion )
203203 {
204204 Category = "StatementsCountOverflowError" ,
205205 Source = jsStatementsException . Source ,
@@ -213,7 +213,7 @@ private JsRuntimeException ConvertTimeoutExceptionToJsRuntimeException(
213213 TimeoutException jsTimeoutException )
214214 {
215215 var jsRuntimeException = new JsRuntimeException ( Strings . Runtime_ExecutionTimeout ,
216- ENGINE_NAME , ENGINE_VERSION )
216+ EngineName , EngineVersion )
217217 {
218218 Category = "TimeoutError" ,
219219 Source = jsTimeoutException . Source ,
0 commit comments