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
{{ message }}
Repository navigation
Commit 52aefc2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+70-46Lines changed: 70 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ MSIE JavaScript Engine for .NET
6
6
This project is a .NET wrapper for working with the JavaScript engines of Internet Explorer and Edge (JsRT versions of Chakra, ActiveScript version of Chakra and Classic JavaScript Engine).
7
7
Project was based on the code of [SassAndCoffee.JavaScript](http://github.com/paulcbetts/SassAndCoffee) and [Chakra Sample Hosts](http://github.com/panopticoncentral/chakra-host).
8
8
9
-
MSIE JavaScript Engine requires a installation of Internet Explorer or Edge on the machine and can work in 5 modes, that are defined in the `MsieJavaScriptEngine.JsEngineMode` enumeration:
9
+
MSIE JavaScript Engine requires a installation of Internet Explorer or Edge on the machine and can work in 5 modes, that are defined in the <codetitle="MsieJavaScriptEngine.JsEngineMode">JsEngineMode</code> enumeration:
10
10
11
11
*`Auto`. Automatically selects the most modern JavaScript engine from available on the machine.
12
12
*`Classic`. Classic MSIE JavaScript engine (supports ECMAScript 3 with possibility of using the ECMAScript 5 Polyfill and the JSON2 library). Requires Internet Explorer 6 or higher on the machine.
13
13
*`ChakraActiveScript`. ActiveScript version of Chakra JavaScript engine (supports ECMAScript 5). Requires Internet Explorer 9 or higher on the machine.
14
-
*`ChakraIeJsRt`. “Legacy” JsRT version of Chakra JavaScript engine (supports ECMAScript 5). Requires Internet Explorer 11 or higher on the machine.
14
+
*`ChakraIeJsRt`. “IE” JsRT version of Chakra JavaScript engine (supports ECMAScript 5). Requires Internet Explorer 11 or Microsoft Edge on the machine.
15
15
*`ChakraEdgeJsRt`. “Edge” JsRT version of Chakra JavaScript engine (supports ECMAScript 5). Requires Microsoft Edge on the machine.
16
16
17
17
The supported .NET types are as follows:
@@ -28,61 +28,85 @@ This library can be installed through NuGet - [http://nuget.org/packages/MsieJav
28
28
## Usage
29
29
Consider a simple example of usage of the MSIE JavaScript Engine:
30
30
31
-
namespace MsieJavaScriptEngine.Example.Console
32
-
{
33
-
using System;
31
+
```csharp
32
+
namespaceMsieJavaScriptEngine.Example.Console
33
+
{
34
+
usingSystem;
34
35
35
-
using MsieJavaScriptEngine;
36
-
using MsieJavaScriptEngine.Helpers;
36
+
usingMsieJavaScriptEngine;
37
+
usingMsieJavaScriptEngine.Helpers;
37
38
38
-
class Program
39
+
classProgram
40
+
{
41
+
staticvoidMain(string[] args)
39
42
{
40
-
static void Main(string[] args)
43
+
try
41
44
{
42
-
try
43
-
{
44
-
using (var jsEngine = new MsieJsEngine(new JsEngineSettings