You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,25 @@
1
1
Change log
2
2
==========
3
3
4
+
## v3.0.0 - December 24, 2018
5
+
* Format of the error messages was unified
6
+
* Created a new exception classes: `JsCompilationException`, `JsEngineException`, `JsFatalException`, `JsInterruptedException`, `JsScriptException` and `JsUsageException`. These exceptions are responsible for handling errors, some of which were previously handled by the `JsRuntimeException` class.
7
+
* In the `JsException` class was added two new properties: `Category` and `Description`
8
+
* From the `JsRuntimeException` class was removed one property - `ErrorCode`
9
+
* In the `JsRuntimeException` class was added three new properties: `Type`, `DocumentName` and `CallStack`
10
+
*`JsEngineLoadException` class now is inherited from the `JsEngineException` class
11
+
*`Format` method of the `JsErrorHelpers` class was renamed to the `GenerateErrorDetails`
12
+
* One part of the auxiliary code was removed, and other part moved to an external library - [AdvancedStringBuilder](https://github.com/Taritsyn/AdvancedStringBuilder)
13
+
* Added a ability to interrupt execution of the script
14
+
* In JsRT modes added a ability to pre-compile scripts
15
+
* In `MsieJsEngine` class was added `SupportsScriptPrecompilation` property and four new methods: `Interrupt`, `Precompile`, `PrecompileFile` and `PrecompileResource`
16
+
* In JavaScript engine settings was added one new property - `MaxStackSize` (default `492` or `984` KB)
17
+
* Added support of .NET Standard 2.0 (only supported `ChakraIeJsRt` and `ChakraEdgeJsRt` modes)
18
+
4
19
## v3.0.0 RC 2 - December 4, 2018
5
20
* Improved performance of debugging in ActiveScript modes
6
21
*`GetSourceFragmentFromLine` method of `JsErrorHelpers` class has been replaced by the `GetTextFragmentFromLine` method of `TextHelpers` class
7
-
* One part of the auxiliary code was removed, and other part moved to an external library - AdvancedStringBuilder
22
+
* One part of the auxiliary code was removed, and other part moved to an external library - [AdvancedStringBuilder](https://github.com/Taritsyn/AdvancedStringBuilder)
8
23
* In the `IeNativeMethods` and `EdgeNativeMethods` classes for the `netstandard` targets was changed a calling convention from `StdCall` to `Cdecl`
First we create an instance of the <codetitle="MsieJavaScriptEngine.MsieJsEngine">MsieJsEngine</code> class.
73
79
Then we evaluate a JavaScript expression by using of the `Evaluate` method and output its result to the console.
74
-
In addition, we provide handling of the following exception types: <codetitle="MsieJavaScriptEngine.JsEngineLoadException">JsEngineLoadException</code> and <codetitle="MsieJavaScriptEngine.JsRuntimeException">JsRuntimeException</code>.
80
+
In addition, we provide handling of the following exception types: <codetitle="MsieJavaScriptEngine.JsEngineLoadException">JsEngineLoadException</code>, <codetitle="MsieJavaScriptEngine.JsScriptException">JsScriptException</code> and <codetitle="MsieJavaScriptEngine.JsException">JsException</code>.
81
+
In the MSIE JavaScript Engine, exceptions have the following hierarchy:
Also, when you create an instance of the <codetitle="MsieJavaScriptEngine.MsieJsEngine">MsieJsEngine</code> class, then you can pass the JavaScript engine settings via the constructor.
77
94
Consider in detail properties of the <codetitle="MsieJavaScriptEngine.JsEngineSettings">JsEngineSettings</code> class:
@@ -98,6 +115,15 @@ Consider in detail properties of the <code title="MsieJavaScriptEngine.JsEngineS
98
115
<td><code>Auto</code></td>
99
116
<td>JavaScript engine mode.</td>
100
117
</tr>
118
+
<tr valign="top">
119
+
<td><code>MaxStackSize</code></td>
120
+
<td><code title="System.Int32">Int32</code></td>
121
+
<td><code>503 808</code> or <code>1 007 616</code></td>
122
+
<td>
123
+
<p>Maximum stack size in bytes.</p>
124
+
<p>Set a <code>0</code> to use the default maximum stack size specified in the header for the executable.</p>
<PackageReleaseNotes>1. Improved performance of debugging in ActiveScript modes;
25
-
2. `GetSourceFragmentFromLine` method of `JsErrorHelpers` class has been replaced by the `GetTextFragmentFromLine` method of `TextHelpers` class;
26
-
3. One part of the auxiliary code was removed, and other part moved to an external library - AdvancedStringBuilder;
27
-
4. In the `IeNativeMethods` and `EdgeNativeMethods` classes for the `netstandard` targets was changed a calling convention from `StdCall` to `Cdecl`.</PackageReleaseNotes>
23
+
<PackageReleaseNotes>1. Format of the error messages was unified;
24
+
2. Created a new exception classes: `JsCompilationException`, `JsEngineException`, `JsFatalException`, `JsInterruptedException`, `JsScriptException` and `JsUsageException`. These exceptions are responsible for handling errors, some of which were previously handled by the `JsRuntimeException` class;
25
+
3. In the `JsException` class was added two new properties: `Category` and `Description`;
26
+
4. From the `JsRuntimeException` class was removed one property - `ErrorCode`;
27
+
5. In the `JsRuntimeException` class was added three new properties: `Type`, `DocumentName` and `CallStack`;
28
+
6. `JsEngineLoadException` class now is inherited from the `JsEngineException` class;
29
+
7. `Format` method of the `JsErrorHelpers` class was renamed to the `GenerateErrorDetails`;
30
+
8. One part of the auxiliary code was removed, and other part moved to an external library - [AdvancedStringBuilder](https://github.com/Taritsyn/AdvancedStringBuilder);
31
+
9. Added a ability to interrupt execution of the script;
32
+
10. In JsRT modes added a ability to pre-compile scripts;
33
+
11. In `MsieJsEngine` class was added `SupportsScriptPrecompilation` property and four new methods: `Interrupt`, `Precompile`, `PrecompileFile` and `PrecompileResource`;
34
+
12. In JavaScript engine settings was added one new property - `MaxStackSize` (default `492` or `984` KB);
35
+
13. Added support of .NET Standard 2.0 (only supported `ChakraIeJsRt` and `ChakraEdgeJsRt` modes).</PackageReleaseNotes>
0 commit comments