{"action":"created","issue":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/524","repository_url":"https://api.github.com/repos/aldeed/meteor-simple-schema","labels_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/524/comments","events_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/524/events","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/524","id":123651454,"number":524,"title":"Safe to clean a constant?","user":{"login":"fabyeah","id":4738527,"avatar_url":"https://avatars.githubusercontent.com/u/4738527?v=3","gravatar_id":"","url":"https://api.github.com/users/fabyeah","html_url":"https://github.com/fabyeah","followers_url":"https://api.github.com/users/fabyeah/followers","following_url":"https://api.github.com/users/fabyeah/following{/other_user}","gists_url":"https://api.github.com/users/fabyeah/gists{/gist_id}","starred_url":"https://api.github.com/users/fabyeah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabyeah/subscriptions","organizations_url":"https://api.github.com/users/fabyeah/orgs","repos_url":"https://api.github.com/users/fabyeah/repos","events_url":"https://api.github.com/users/fabyeah/events{/privacy}","received_events_url":"https://api.github.com/users/fabyeah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-12-23T12:27:49Z","updated_at":"2016-08-12T00:07:04Z","closed_at":null,"body":"I'm using ```let``` and ```const``` everywhere now, so I just wanted to ask if it is safe to clean a constant or is there any case in which this would throw an error?"},"comment":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/comments/239329715","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/524#issuecomment-239329715","issue_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/524","id":239329715,"user":{"login":"fabyeah","id":4738527,"avatar_url":"https://avatars.githubusercontent.com/u/4738527?v=3","gravatar_id":"","url":"https://api.github.com/users/fabyeah","html_url":"https://github.com/fabyeah","followers_url":"https://api.github.com/users/fabyeah/followers","following_url":"https://api.github.com/users/fabyeah/following{/other_user}","gists_url":"https://api.github.com/users/fabyeah/gists{/gist_id}","starred_url":"https://api.github.com/users/fabyeah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabyeah/subscriptions","organizations_url":"https://api.github.com/users/fabyeah/orgs","repos_url":"https://api.github.com/users/fabyeah/repos","events_url":"https://api.github.com/users/fabyeah/events{/privacy}","received_events_url":"https://api.github.com/users/fabyeah/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T00:07:04Z","updated_at":"2016-08-12T00:07:04Z","body":"I think all the listed cleaning options (https://github.com/aldeed/meteor-simple-schema#cleaning-data) only mutate the objects properties, which is fine with constants.\r\nOr is there some part of the code that actually reassignes the object ```obj = ...```\r\n\r\nI faintly remember getting an error once, before I changed all occurrences to let, but I can't be sure... Also I don't really know how to test this and cover all potential cases."}}
{"actor":{"display_login":"fabyeah"}}