{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/261","repository_url":"https://api.github.com/repos/Microsoft/ChakraCore","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/261/comments","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/261/events","html_url":"https://github.com/Microsoft/ChakraCore/issues/261","id":131206351,"number":261,"title":"Object.prototype should be an immutable prototype exotic object","user":{"login":"bterlson","id":11236,"avatar_url":"https://avatars.githubusercontent.com/u/11236?v=3","gravatar_id":"","url":"https://api.github.com/users/bterlson","html_url":"https://github.com/bterlson","followers_url":"https://api.github.com/users/bterlson/followers","following_url":"https://api.github.com/users/bterlson/following{/other_user}","gists_url":"https://api.github.com/users/bterlson/gists{/gist_id}","starred_url":"https://api.github.com/users/bterlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bterlson/subscriptions","organizations_url":"https://api.github.com/users/bterlson/orgs","repos_url":"https://api.github.com/users/bterlson/repos","events_url":"https://api.github.com/users/bterlson/events{/privacy}","received_events_url":"https://api.github.com/users/bterlson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/ChakraCore/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/Microsoft/ChakraCore/labels/ES%20Spec%20Changed","name":"ES Spec Changed","color":"FFE568"}],"state":"open","locked":false,"assignee":{"login":"dilijev","id":494055,"avatar_url":"https://avatars.githubusercontent.com/u/494055?v=3","gravatar_id":"","url":"https://api.github.com/users/dilijev","html_url":"https://github.com/dilijev","followers_url":"https://api.github.com/users/dilijev/followers","following_url":"https://api.github.com/users/dilijev/following{/other_user}","gists_url":"https://api.github.com/users/dilijev/gists{/gist_id}","starred_url":"https://api.github.com/users/dilijev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilijev/subscriptions","organizations_url":"https://api.github.com/users/dilijev/orgs","repos_url":"https://api.github.com/users/dilijev/repos","events_url":"https://api.github.com/users/dilijev/events{/privacy}","received_events_url":"https://api.github.com/users/dilijev/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/milestones/1","html_url":"https://github.com/Microsoft/ChakraCore/milestones/1.2","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/milestones/1/labels","id":1637777,"number":1,"title":"1.2","description":"ChakraCore 1.2","creator":{"login":"abchatra","id":6107272,"avatar_url":"https://avatars.githubusercontent.com/u/6107272?v=3","gravatar_id":"","url":"https://api.github.com/users/abchatra","html_url":"https://github.com/abchatra","followers_url":"https://api.github.com/users/abchatra/followers","following_url":"https://api.github.com/users/abchatra/following{/other_user}","gists_url":"https://api.github.com/users/abchatra/gists{/gist_id}","starred_url":"https://api.github.com/users/abchatra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abchatra/subscriptions","organizations_url":"https://api.github.com/users/abchatra/orgs","repos_url":"https://api.github.com/users/abchatra/repos","events_url":"https://api.github.com/users/abchatra/events{/privacy}","received_events_url":"https://api.github.com/users/abchatra/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":53,"state":"open","created_at":"2016-03-10T22:02:13Z","updated_at":"2016-04-21T18:05:32Z","due_on":"2016-04-15T07:00:00Z","closed_at":null},"comments":6,"created_at":"2016-02-04T01:02:38Z","updated_at":"2016-04-25T18:27:34Z","closed_at":null,"body":"You should not be able to change its prototype with `Object.setPrototypeOf`, `__proto__`, or any other means. See also: https://github.com/tc39/ecma262/pull/308."},"comment":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/comments/214471016","html_url":"https://github.com/Microsoft/ChakraCore/issues/261#issuecomment-214471016","issue_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/261","id":214471016,"user":{"login":"bterlson","id":11236,"avatar_url":"https://avatars.githubusercontent.com/u/11236?v=3","gravatar_id":"","url":"https://api.github.com/users/bterlson","html_url":"https://github.com/bterlson","followers_url":"https://api.github.com/users/bterlson/followers","following_url":"https://api.github.com/users/bterlson/following{/other_user}","gists_url":"https://api.github.com/users/bterlson/gists{/gist_id}","starred_url":"https://api.github.com/users/bterlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bterlson/subscriptions","organizations_url":"https://api.github.com/users/bterlson/orgs","repos_url":"https://api.github.com/users/bterlson/repos","events_url":"https://api.github.com/users/bterlson/events{/privacy}","received_events_url":"https://api.github.com/users/bterlson/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T18:27:34Z","updated_at":"2016-04-25T18:27:34Z","body":"Just to be clear, here's a code sample:\r\n\r\n```js\r\nvar obj = Object.create(null);\r\nObject.setPrototypeOf(Object.prototype, obj);\r\n// or...\r\nObject.prototype.__proto__ = obj;\r\n```\r\n\r\nExpected: TypeError in all modes\r\nActual: No TypeError\r\n\r\nDo note that the type error is not dependent on mode (can you confirm @ljharb?)."}}