{"action":"closed","issue":{"url":"https://api.github.com/repos/sebastienros/jint/issues/504","repository_url":"https://api.github.com/repos/sebastienros/jint","labels_url":"https://api.github.com/repos/sebastienros/jint/issues/504/labels{/name}","comments_url":"https://api.github.com/repos/sebastienros/jint/issues/504/comments","events_url":"https://api.github.com/repos/sebastienros/jint/issues/504/events","html_url":"https://github.com/sebastienros/jint/issues/504","id":325757325,"number":504,"title":"migration from Microsoft.ClearScript.V8","user":{"login":"cilerler","id":385958,"avatar_url":"https://avatars1.githubusercontent.com/u/385958?v=4","gravatar_id":"","url":"https://api.github.com/users/cilerler","html_url":"https://github.com/cilerler","followers_url":"https://api.github.com/users/cilerler/followers","following_url":"https://api.github.com/users/cilerler/following{/other_user}","gists_url":"https://api.github.com/users/cilerler/gists{/gist_id}","starred_url":"https://api.github.com/users/cilerler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cilerler/subscriptions","organizations_url":"https://api.github.com/users/cilerler/orgs","repos_url":"https://api.github.com/users/cilerler/repos","events_url":"https://api.github.com/users/cilerler/events{/privacy}","received_events_url":"https://api.github.com/users/cilerler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-23T15:23:43Z","updated_at":"2018-05-23T17:53:17Z","closed_at":"2018-05-23T17:53:17Z","author_association":"NONE","body":"Trying to migrate from **Microsoft.ClearScript.V8** to **Jint** as suggested in here https://github.com/Microsoft/ClearScript/issues/9\r\n\r\nthe project I have to handle uses really limited amount of the features of the library but I have to understand if there is a pitfall here, can you help me to convert the code block below to Jint's syntax and inform me if there is anything that I may need to be aware of?  Thanks in advance...\r\n\r\n```\r\nusing Microsoft.ClearScript.V8;\r\n\r\npublic class Parser : IDisposable\r\n{\r\n    // ...\r\n    private V8ScriptEngine engine = null;\r\n\r\n    public void ParseDataFile()\r\n    {\r\n        // ...\r\n        \r\n        using (engine = new V8ScriptEngine())\r\n        {\r\n            engine.AddHostObject(\"host\", new Microsoft.ClearScript.HostFunctions());\r\n            engine.AddHostObject(\"lib\", new Microsoft.ClearScript.HostTypeCollection(\"mscorlib\", \"System.Core\"));\r\n            engine.AddHostObject(\"parser\", this);\r\n        }\r\n\r\n        var codeStmt = (ParserCodeBlock)step;\r\n        engine.Execute(codeStmt.Code);\r\n\r\n        var context = new { obj = obj, property = property, value = value };\r\n        engine.AddHostObject(\"context\", context);\r\n        string evaluated = engine.Evaluate((string)functionArguments).ToString();\r\n        \r\n        // ...\r\n    }\r\n    // ...\r\n}\r\n```"}}
{"actor":{"display_login":"sebastienros"}}