{"action":"created","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/13895","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/13895/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/13895/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/13895/events","html_url":"https://github.com/ariya/phantomjs/issues/13895","id":126904367,"number":13895,"title":"Object.defineProperty TypeError: Attempting to configurable attribute of unconfigurable property","user":{"login":"MKuenzi","id":7749585,"avatar_url":"https://avatars.githubusercontent.com/u/7749585?v=3","gravatar_id":"","url":"https://api.github.com/users/MKuenzi","html_url":"https://github.com/MKuenzi","followers_url":"https://api.github.com/users/MKuenzi/followers","following_url":"https://api.github.com/users/MKuenzi/following{/other_user}","gists_url":"https://api.github.com/users/MKuenzi/gists{/gist_id}","starred_url":"https://api.github.com/users/MKuenzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MKuenzi/subscriptions","organizations_url":"https://api.github.com/users/MKuenzi/orgs","repos_url":"https://api.github.com/users/MKuenzi/repos","events_url":"https://api.github.com/users/MKuenzi/events{/privacy}","received_events_url":"https://api.github.com/users/MKuenzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-15T16:16:53Z","updated_at":"2016-01-26T16:58:37Z","closed_at":null,"body":"When I run this code in phantomjs:\r\n\r\n```javascript\r\nvar Test = (function()\r\n{\r\n\t\tfunction Test()\r\n\t\t{\r\n\t\t\tthis.instanceProp = \"hello!\";\r\n\t\t}\r\n\r\n\t\tObject.defineProperty(Test, \"name\", {\r\n\t\t\tget: function () {\r\n\t\t\t\treturn \"TextHelper\";\r\n\t\t\t},\r\n\t\t\tenumerable: true,\r\n\t\t\tconfigurable: true\r\n\t\t});\r\n\r\n\t\treturn Test;\r\n})();\r\n```\r\n\r\nI am getting the error TypeError: Attempting to configurable attribute of unconfigurable property.\r\n\r\nRunning this code in Firefox, Chrome and IE does not seem to produce an issue.\r\n\r\nThanks in advance for your help."},"comment":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/comments/175115436","html_url":"https://github.com/ariya/phantomjs/issues/13895#issuecomment-175115436","issue_url":"https://api.github.com/repos/ariya/phantomjs/issues/13895","id":175115436,"user":{"login":"CyborgMaster","id":1882579,"avatar_url":"https://avatars.githubusercontent.com/u/1882579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyborgMaster","html_url":"https://github.com/CyborgMaster","followers_url":"https://api.github.com/users/CyborgMaster/followers","following_url":"https://api.github.com/users/CyborgMaster/following{/other_user}","gists_url":"https://api.github.com/users/CyborgMaster/gists{/gist_id}","starred_url":"https://api.github.com/users/CyborgMaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyborgMaster/subscriptions","organizations_url":"https://api.github.com/users/CyborgMaster/orgs","repos_url":"https://api.github.com/users/CyborgMaster/repos","events_url":"https://api.github.com/users/CyborgMaster/events{/privacy}","received_events_url":"https://api.github.com/users/CyborgMaster/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T16:58:37Z","updated_at":"2016-01-26T16:58:37Z","body":"I wish I had that option.  I'm using a third party tool (apache ripple emulator), and so I can't change the properties they use.  "}}