{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/prepack/issues/932","repository_url":"https://api.github.com/repos/facebook/prepack","labels_url":"https://api.github.com/repos/facebook/prepack/issues/932/labels{/name}","comments_url":"https://api.github.com/repos/facebook/prepack/issues/932/comments","events_url":"https://api.github.com/repos/facebook/prepack/issues/932/events","html_url":"https://github.com/facebook/prepack/issues/932","id":252972613,"number":932,"title":"Improve prepack model for write-only properties/bindings","user":{"login":"yinghuitan","id":10968261,"avatar_url":"https://avatars2.githubusercontent.com/u/10968261?v=4","gravatar_id":"","url":"https://api.github.com/users/yinghuitan","html_url":"https://github.com/yinghuitan","followers_url":"https://api.github.com/users/yinghuitan/followers","following_url":"https://api.github.com/users/yinghuitan/following{/other_user}","gists_url":"https://api.github.com/users/yinghuitan/gists{/gist_id}","starred_url":"https://api.github.com/users/yinghuitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinghuitan/subscriptions","organizations_url":"https://api.github.com/users/yinghuitan/orgs","repos_url":"https://api.github.com/users/yinghuitan/repos","events_url":"https://api.github.com/users/yinghuitan/events{/privacy}","received_events_url":"https://api.github.com/users/yinghuitan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-25T17:45:18Z","updated_at":"2017-08-25T17:45:18Z","closed_at":null,"body":"Currently the best practice to model is that, \r\n1. Mark global object as partial so that any unauthorized properties/bindings on global object will fail with meaningful error message\r\n2. Then we model these prepack denied properties/bindings one by one.\r\n\r\nHowever, many JS code do not care about the properties/bindings initial values from the environment, they just overwrite them with expected values from the JS code. In this case, it is annoying to model them. We should be able to check properties/bindings on partial objects are \"data properties\" and only got written to the first time, so that no model is necessary."}}
{"actor":{"display_login":"yinghuitan"}}