{"action":"created","issue":{"url":"https://api.github.com/repos/sq/JSIL/issues/1018","repository_url":"https://api.github.com/repos/sq/JSIL","labels_url":"https://api.github.com/repos/sq/JSIL/issues/1018/labels{/name}","comments_url":"https://api.github.com/repos/sq/JSIL/issues/1018/comments","events_url":"https://api.github.com/repos/sq/JSIL/issues/1018/events","html_url":"https://github.com/sq/JSIL/issues/1018","id":180521787,"number":1018,"title":"Expandoobject","user":{"login":"thelazydogsback","id":4603468,"avatar_url":"https://avatars.githubusercontent.com/u/4603468?v=3","gravatar_id":"","url":"https://api.github.com/users/thelazydogsback","html_url":"https://github.com/thelazydogsback","followers_url":"https://api.github.com/users/thelazydogsback/followers","following_url":"https://api.github.com/users/thelazydogsback/following{/other_user}","gists_url":"https://api.github.com/users/thelazydogsback/gists{/gist_id}","starred_url":"https://api.github.com/users/thelazydogsback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelazydogsback/subscriptions","organizations_url":"https://api.github.com/users/thelazydogsback/orgs","repos_url":"https://api.github.com/users/thelazydogsback/repos","events_url":"https://api.github.com/users/thelazydogsback/events{/privacy}","received_events_url":"https://api.github.com/users/thelazydogsback/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sq/JSIL/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/sq/JSIL/labels/Discussion","name":"Discussion","color":"d4d4d8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-02T16:50:46Z","updated_at":"2016-10-04T22:49:23Z","closed_at":null,"body":"Trying:\r\n`dynamic e = new ExpandoObject();`\r\nin tryJsil produces the following:\r\n\r\n`Unhandled exception: TypeError: Cannot read property 'ExpandoObject' of undefined`\r\n\r\nAlso, what type can I use on the C# side for dynamic objects such that the usage is completely erased by the compiler in favor of using native objects on the JS side?\r\n\r\nFor example, I'd want:\r\n```\r\ndynamic obj1 = new ExpandoOrWhatever()\r\ndynamic obj2 = new ExpandoOrWhatever()\r\nobj2.bar = 42;\r\nobj1.foo = obj2;\r\n\r\n```\r\nto be compiled to:\r\n```\r\nobj1 = {}\r\nobj2 = {}\r\nobj2.bar = 42;\r\nobj1.foo = obj1;\r\n// obj1 = { foo: {bar: 42}}\r\n\r\n```\r\nthanks\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sq/JSIL/issues/comments/251536135","html_url":"https://github.com/sq/JSIL/issues/1018#issuecomment-251536135","issue_url":"https://api.github.com/repos/sq/JSIL/issues/1018","id":251536135,"user":{"login":"DanielRRegner","id":17662779,"avatar_url":"https://avatars.githubusercontent.com/u/17662779?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRRegner","html_url":"https://github.com/DanielRRegner","followers_url":"https://api.github.com/users/DanielRRegner/followers","following_url":"https://api.github.com/users/DanielRRegner/following{/other_user}","gists_url":"https://api.github.com/users/DanielRRegner/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRRegner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRRegner/subscriptions","organizations_url":"https://api.github.com/users/DanielRRegner/orgs","repos_url":"https://api.github.com/users/DanielRRegner/repos","events_url":"https://api.github.com/users/DanielRRegner/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRRegner/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T22:49:23Z","updated_at":"2016-10-04T22:49:23Z","body":"The above example is working well for me in VS2013, but in VS2015, I end up with a much more verbose output using System.Runtime.CompilerServices.CallSite to invoke every operation in each expression.  Searching reveals issue #531 where apparently the new Roslyn compiler creates issues with generating the concise output.\r\n\r\nIs there a workaround or other technique to get the above result even with VS2015, or is that only available with the earlier version?  Thank you in advance for your time."}}
{"actor":{"display_login":"DanielRRegner"}}