{"action":"created","issue":{"url":"https://api.github.com/repos/cesanta/v7/issues/507","labels_url":"https://api.github.com/repos/cesanta/v7/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/cesanta/v7/issues/507/comments","events_url":"https://api.github.com/repos/cesanta/v7/issues/507/events","html_url":"https://github.com/cesanta/v7/issues/507","id":109891167,"number":507,"title":"Object.defineProperty getter and setter does not work","user":{"login":"Evol-Intent","id":14983265,"avatar_url":"https://avatars.githubusercontent.com/u/14983265?v=3","gravatar_id":"","url":"https://api.github.com/users/Evol-Intent","html_url":"https://github.com/Evol-Intent","followers_url":"https://api.github.com/users/Evol-Intent/followers","following_url":"https://api.github.com/users/Evol-Intent/following{/other_user}","gists_url":"https://api.github.com/users/Evol-Intent/gists{/gist_id}","starred_url":"https://api.github.com/users/Evol-Intent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evol-Intent/subscriptions","organizations_url":"https://api.github.com/users/Evol-Intent/orgs","repos_url":"https://api.github.com/users/Evol-Intent/repos","events_url":"https://api.github.com/users/Evol-Intent/events{/privacy}","received_events_url":"https://api.github.com/users/Evol-Intent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-05T21:35:24Z","updated_at":"2015-10-05T22:03:21Z","closed_at":null,"body":"The code is:\r\n```javascript\r\n(function(global) {\r\n\r\n\tvar Player = function(num) {\r\n\t\tthis.num = num;\r\n\t};\r\n\r\n\tObject.defineProperty(Player.prototype, 'number', {\r\n\t\tget: function() {\r\n\t\t\treturn this.num+1;\r\n\t\t},\r\n\t\tset: function(value) {\r\n\t\t\tthis.num = value*10;\r\n\t\t}\r\n\t});\r\n\r\n\tvar p = new Player(7);\r\n\tprint(p.number);\r\n\tp.number=2;\r\n\tprint(p.number);\r\n\r\n})(this);\r\n```\r\n\r\nThe result should be: 8, 21\r\nBut the result is: undefined, undefined"},"comment":{"url":"https://api.github.com/repos/cesanta/v7/issues/comments/145681830","html_url":"https://github.com/cesanta/v7/issues/507#issuecomment-145681830","issue_url":"https://api.github.com/repos/cesanta/v7/issues/507","id":145681830,"user":{"login":"mmikulicic","id":52673,"avatar_url":"https://avatars.githubusercontent.com/u/52673?v=3","gravatar_id":"","url":"https://api.github.com/users/mmikulicic","html_url":"https://github.com/mmikulicic","followers_url":"https://api.github.com/users/mmikulicic/followers","following_url":"https://api.github.com/users/mmikulicic/following{/other_user}","gists_url":"https://api.github.com/users/mmikulicic/gists{/gist_id}","starred_url":"https://api.github.com/users/mmikulicic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmikulicic/subscriptions","organizations_url":"https://api.github.com/users/mmikulicic/orgs","repos_url":"https://api.github.com/users/mmikulicic/repos","events_url":"https://api.github.com/users/mmikulicic/events{/privacy}","received_events_url":"https://api.github.com/users/mmikulicic/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T22:03:21Z","updated_at":"2015-10-05T22:03:21Z","body":"We should throw an exception though I guess"}}