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: README.md
+70Lines changed: 70 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,79 @@ MSIE JavaScript Engine for .NET
6
6
This project is a .NET wrapper for working with the Internet Explorer's JavaScript engines (JsRT version 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 on the machine and can work in 4 modes, that are defined in the `MsieJavaScriptEngine.JsEngineMode` enumeration:
10
+
11
+
*`Auto`. Automatically selects the most modern JavaScript engine from available on the machine.
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
+
*`ChakraActiveScript`. ActiveScript version of Chakra JavaScript engine (supports ECMAScript 3 with possibility of using the ECMAScript 5 Polyfill and the JSON2 library). Requires Internet Explorer 9 or higher on the machine.
14
+
*`ChakraJsRt`. JsRT version of Chakra JavaScript engine (supports ECMAScript 5). Requires Internet Explorer 11 or higher on the machine. Detailed information about JsRT you can read in the [Paul Vick's blog](http://www.panopticoncentral.net/category/javascript/).
15
+
16
+
The supported .NET types are as follows:
17
+
18
+
*`MsieJavaScriptEngine.Undefined`
19
+
*`System.Boolean`
20
+
*`System.Int32`
21
+
*`System.Double`
22
+
*`System.String`
23
+
9
24
## Installation
10
25
This library can be installed through NuGet - [http://nuget.org/packages/MsieJavaScriptEngine](http://nuget.org/packages/MsieJavaScriptEngine).
11
26
27
+
## Usage
28
+
Consider a simple example of usage of the MSIE JavaScript Engine:
29
+
30
+
namespace MsieJavaScriptEngine.Example.Console
31
+
{
32
+
using System;
33
+
34
+
using MsieJavaScriptEngine;
35
+
using MsieJavaScriptEngine.Helpers;
36
+
37
+
class Program
38
+
{
39
+
static void Main(string[] args)
40
+
{
41
+
try
42
+
{
43
+
using (var jsEngine = new MsieJsEngine(engineMode: JsEngineMode.Auto,
0 commit comments