{"action":"opened","issue":{"url":"https://api.github.com/repos/nzakas/understandinges6/issues/364","repository_url":"https://api.github.com/repos/nzakas/understandinges6","labels_url":"https://api.github.com/repos/nzakas/understandinges6/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/nzakas/understandinges6/issues/364/comments","events_url":"https://api.github.com/repos/nzakas/understandinges6/issues/364/events","html_url":"https://github.com/nzakas/understandinges6/issues/364","id":197811500,"number":364,"title":"weakSet throw error has change","user":{"login":"joy-yi0905","id":10655307,"avatar_url":"https://avatars.githubusercontent.com/u/10655307?v=3","gravatar_id":"","url":"https://api.github.com/users/joy-yi0905","html_url":"https://github.com/joy-yi0905","followers_url":"https://api.github.com/users/joy-yi0905/followers","following_url":"https://api.github.com/users/joy-yi0905/following{/other_user}","gists_url":"https://api.github.com/users/joy-yi0905/gists{/gist_id}","starred_url":"https://api.github.com/users/joy-yi0905/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joy-yi0905/subscriptions","organizations_url":"https://api.github.com/users/joy-yi0905/orgs","repos_url":"https://api.github.com/users/joy-yi0905/repos","events_url":"https://api.github.com/users/joy-yi0905/events{/privacy}","received_events_url":"https://api.github.com/users/joy-yi0905/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-28T07:52:47Z","updated_at":"2016-12-28T07:52:47Z","closed_at":null,"body":"> In a WeakSet instance, the add() method, has() method, and delete() method all throw an error when passed a non-object.\r\n\r\nThe `add()` method will throw an error, but `has()` and `delete()` do not .\r\n\r\n```javascript\r\nvar arr = [[1, 3], {}],\r\n    weakSet = new WeakSet(arr);\r\n\r\nconsole.log(weakSet); // WeakSet {[1, 3], {}}\r\nconsole.log(weakSet.has(1)); // false\r\nconsole.log(weakSet.delete(1)); // false\r\n\r\nweakSet.add(1); // error: Invalid value used in weak set\r\n```"}}
{"actor":{"display_login":"joy-yi0905"}}