{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/1656","repository_url":"https://api.github.com/repos/Microsoft/ChakraCore","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/1656/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/1656/comments","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/1656/events","html_url":"https://github.com/Microsoft/ChakraCore/issues/1656","id":179773314,"number":1656,"title":"global variable parameters array cannot be runned","user":{"login":"oguzhankarsli","id":1496620,"avatar_url":"https://avatars.githubusercontent.com/u/1496620?v=3","gravatar_id":"","url":"https://api.github.com/users/oguzhankarsli","html_url":"https://github.com/oguzhankarsli","followers_url":"https://api.github.com/users/oguzhankarsli/followers","following_url":"https://api.github.com/users/oguzhankarsli/following{/other_user}","gists_url":"https://api.github.com/users/oguzhankarsli/gists{/gist_id}","starred_url":"https://api.github.com/users/oguzhankarsli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oguzhankarsli/subscriptions","organizations_url":"https://api.github.com/users/oguzhankarsli/orgs","repos_url":"https://api.github.com/users/oguzhankarsli/repos","events_url":"https://api.github.com/users/oguzhankarsli/events{/privacy}","received_events_url":"https://api.github.com/users/oguzhankarsli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-28T13:31:11Z","updated_at":"2016-09-28T16:59:20Z","closed_at":null,"body":"Hi, I set to global variable to engine. And i write a script. Script run integer, string parameter. but can not run array parameter. How i can run  with array parameter?\r\nExample;\r\nSetGlobalVarable:\r\n` Engine.AddTypeToGlobal<XMLHttpRequest>();\r\n\t\t\t    Engine.AddTypeToGlobal<ScriptInput>();\r\n\t\t\t\tEngine.SetGlobalFunction(\"echo\", Echo);\r\n\r\n\t\t\t    var scriptInput = new ScriptInput()\r\n\t\t\t    {\r\n\t\t\t        numbers = new int[2],\r\n                    texts = new string[3]\r\n\t\t\t    };\r\n\r\n\t\t\t    scriptInput.numbers[0] = 5;\r\n\t\t\t    scriptInput.texts[0] = \"test\";\r\n\t\t\t    scriptInput.value = \"1234\";\r\n             \r\n                Engine.SetGlobalVariable(\"scriptInput\", Engine.Converter.FromObject(scriptInput));`\r\n\r\nRun Script: \r\n\r\n`var fn = Bag.Engine.EvaluateScriptText(csriptContent);\r\nvar javaScriptValue = fn.Invoke(Enumerable.Empty<JavaScriptValue>());`\r\n\r\n\r\nScript:\r\n\r\n`function myFunction() {\r\n    var output = scriptInput.value;\r\n    return output;\r\n}\r\nmyFunction();`\r\n\r\nthis script return value succesfully,\r\n\r\n`function myFunction() {\r\nvar output = scriptInput.numbers;\r\nreturn output;\r\n}\t\r\nmyFunction();`\r\n\r\nthis script return undefined. How i fixed?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/comments/250229269","html_url":"https://github.com/Microsoft/ChakraCore/issues/1656#issuecomment-250229269","issue_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/1656","id":250229269,"user":{"login":"liminzhu","id":1158954,"avatar_url":"https://avatars.githubusercontent.com/u/1158954?v=3","gravatar_id":"","url":"https://api.github.com/users/liminzhu","html_url":"https://github.com/liminzhu","followers_url":"https://api.github.com/users/liminzhu/followers","following_url":"https://api.github.com/users/liminzhu/following{/other_user}","gists_url":"https://api.github.com/users/liminzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/liminzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liminzhu/subscriptions","organizations_url":"https://api.github.com/users/liminzhu/orgs","repos_url":"https://api.github.com/users/liminzhu/repos","events_url":"https://api.github.com/users/liminzhu/events{/privacy}","received_events_url":"https://api.github.com/users/liminzhu/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T16:59:20Z","updated_at":"2016-09-28T16:59:20Z","body":"Very much depends on how `Engine.Converter.FromObject` is implemented. Can you point us to that function?"}}
{"actor":{"display_login":"liminzhu"}}