{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/153","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/153/comments","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/153/events","html_url":"https://github.com/Microsoft/ChakraCore/issues/153","id":127776833,"number":153,"title":"Function.name property is non-writable. It should be initialized as such.","user":{"login":"rajatd","id":15348123,"avatar_url":"https://avatars.githubusercontent.com/u/15348123?v=3","gravatar_id":"","url":"https://api.github.com/users/rajatd","html_url":"https://github.com/rajatd","followers_url":"https://api.github.com/users/rajatd/followers","following_url":"https://api.github.com/users/rajatd/following{/other_user}","gists_url":"https://api.github.com/users/rajatd/gists{/gist_id}","starred_url":"https://api.github.com/users/rajatd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajatd/subscriptions","organizations_url":"https://api.github.com/users/rajatd/orgs","repos_url":"https://api.github.com/users/rajatd/repos","events_url":"https://api.github.com/users/rajatd/events{/privacy}","received_events_url":"https://api.github.com/users/rajatd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/ChakraCore/labels/Accepting%20PRs","name":"Accepting PRs","color":"bfdadc"},{"url":"https://api.github.com/repos/Microsoft/ChakraCore/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-20T20:28:40Z","updated_at":"2016-01-21T20:00:08Z","closed_at":null,"body":"SimplePropertyDescriptor const JavascriptLibrary::SharedFunctionPropertyDescriptors[2] =\r\n    {\r\n        SimplePropertyDescriptor(BuiltInPropertyRecords::prototype, PropertyWritable),\r\n        SimplePropertyDescriptor(BuiltInPropertyRecords::name, PropertyConfigurable | PropertyWritable)\r\n    };"},"comment":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/comments/173691684","html_url":"https://github.com/Microsoft/ChakraCore/issues/153#issuecomment-173691684","issue_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/153","id":173691684,"user":{"login":"rajatd","id":15348123,"avatar_url":"https://avatars.githubusercontent.com/u/15348123?v=3","gravatar_id":"","url":"https://api.github.com/users/rajatd","html_url":"https://github.com/rajatd","followers_url":"https://api.github.com/users/rajatd/followers","following_url":"https://api.github.com/users/rajatd/following{/other_user}","gists_url":"https://api.github.com/users/rajatd/gists{/gist_id}","starred_url":"https://api.github.com/users/rajatd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajatd/subscriptions","organizations_url":"https://api.github.com/users/rajatd/orgs","repos_url":"https://api.github.com/users/rajatd/repos","events_url":"https://api.github.com/users/rajatd/events{/privacy}","received_events_url":"https://api.github.com/users/rajatd/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T20:00:08Z","updated_at":"2016-01-21T20:00:08Z","body":"Ah yes. That's because although we are initializing the *name* property as writable, when setting the actual name  to this property, we set the property attributes as only configurable. So, not a functional bug I guess. But, good to fix as setting attributes different from what were originally there on the property may disable type sharing. For reference, you could see the following code in `SimpleTypeHandler<size>::SetPropertyWithAttriutes` \r\n\r\n```\r\n SimpleTypeHandler * typeHandler = this;\r\n                if (GetIsLocked())\r\n                {\r\n#if DBG\r\n                    DynamicType* oldType = instance->GetDynamicType();\r\n#endif\r\n                    typeHandler = this->ConvertToNonSharedSimpleType(instance);\r\n#if DBG\r\n                    Assert(!oldType->GetIsLocked() || instance->GetDynamicType() != oldType);\r\n#endif\r\n                }\r\n```"}}