Skip to content

Commit 6c46e84

Browse files
committed
Fixed a minor errors
1 parent acb9f71 commit 6c46e84

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

src/MsieJavaScriptEngine/Helpers/JsErrorHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace MsieJavaScriptEngine.Helpers
1212
{
1313
/// <summary>
14-
/// JS engine error helpers
14+
/// JS error helpers
1515
/// </summary>
1616
public static class JsErrorHelpers
1717
{

src/MsieJavaScriptEngine/JsScriptException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class JsScriptException : JsException
4444
/// </summary>
4545
public string Type
4646
{
47-
get;
48-
set;
47+
get { return _type; }
48+
set { _type = value; }
4949
}
5050

5151
/// <summary>

src/MsieJavaScriptEngine/MsieJsEngine.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ public void Execute(string code, string documentName)
418418
}
419419

420420
/// <summary>
421-
/// Executes a code from JS-file
421+
/// Executes a code from JS file
422422
/// </summary>
423-
/// <param name="path">Path to the JS-file</param>
423+
/// <param name="path">Path to the JS file</param>
424424
/// <param name="encoding">Text encoding</param>
425425
/// <exception cref="ObjectDisposedException"/>
426426
/// <exception cref="ArgumentNullException"/>
@@ -473,14 +473,15 @@ public void ExecuteFile(string path, Encoding encoding = null)
473473
}
474474

475475
/// <summary>
476-
/// Executes a code from embedded JS-resource
476+
/// Executes a code from embedded JS resource
477477
/// </summary>
478478
/// <param name="resourceName">The case-sensitive resource name without the namespace of the specified type</param>
479479
/// <param name="type">The type, that determines the assembly and whose namespace is used to scope
480480
/// the resource name</param>
481481
/// <exception cref="ObjectDisposedException"/>
482482
/// <exception cref="ArgumentNullException"/>
483483
/// <exception cref="ArgumentException"/>
484+
/// <exception cref="NullReferenceException"/>
484485
/// <exception cref="JsUsageException"/>
485486
/// <exception cref="JsCompilationException"/>
486487
/// <exception cref="JsInterruptedException"/>
@@ -540,13 +541,14 @@ public void ExecuteResource(string resourceName, Type type)
540541
}
541542

542543
/// <summary>
543-
/// Executes a code from embedded JS-resource
544+
/// Executes a code from embedded JS resource
544545
/// </summary>
545546
/// <param name="resourceName">The case-sensitive resource name</param>
546547
/// <param name="assembly">The assembly, which contains the embedded resource</param>
547548
/// <exception cref="ObjectDisposedException"/>
548549
/// <exception cref="ArgumentNullException"/>
549550
/// <exception cref="ArgumentException"/>
551+
/// <exception cref="NullReferenceException"/>
550552
/// <exception cref="JsUsageException"/>
551553
/// <exception cref="JsCompilationException"/>
552554
/// <exception cref="JsInterruptedException"/>

src/MsieJavaScriptEngine/ScriptDispatcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace MsieJavaScriptEngine
1414
/// </summary>
1515
internal sealed class ScriptDispatcher : IDisposable
1616
{
17-
#if !NETSTANDARD
17+
#if !NETSTANDARD1_3
1818
/// <summary>
1919
/// The stack size is sufficient to run the code of modern JS libraries in 32-bit process
2020
/// </summary>
@@ -57,7 +57,7 @@ internal sealed class ScriptDispatcher : IDisposable
5757
/// </summary>
5858
public ScriptDispatcher()
5959
{
60-
#if NETSTANDARD
60+
#if NETSTANDARD1_3
6161
_thread = new Thread(StartThread)
6262
#else
6363
int sufficientStackSize = Utils.Is64BitProcess() ? STACK_SIZE_64 : STACK_SIZE_32;

src/MsieJavaScriptEngine/Utilities/Utils.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ private static string InnerGetResourceAsString(string resourceName, Assembly ass
108108
if (stream == null)
109109
{
110110
throw new NullReferenceException(
111-
string.Format(CommonStrings.Common_ResourceIsNull, resourceName));
111+
string.Format(CommonStrings.Common_ResourceIsNull, resourceName)
112+
);
112113
}
113114

114115
using (var reader = new StreamReader(stream))

0 commit comments

Comments
 (0)