{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/comments/45542758","id":45542758,"diff_hunk":"@@ -2,4 +2,108 @@\n \n exports.init = function () {\n \n+    Object.defineProperties(Object.prototype, {\n+        checkHasKeys: {\n+            value: function checkHasKeys(keys) {\n+                if (this.constructor !== Object && this.constructor !== Array) {\n+                    throw new Error('No such method for type ' + this.constructor.name);\n+                }\n+                var this_keys = Object.keys(this).sort();\n+                keys = keys.sort();\n+                if (this_keys.length !== keys.length) {\n+                    return false;\n+                }\n+                keys = this_keys.filter(isEqual(keys));","path":"src/check.js","position":15,"original_position":15,"commit_id":"91e56944b99f582a4e2e788157e3db5c807ad875","original_commit_id":"91e56944b99f582a4e2e788157e3db5c807ad875","user":{"login":"gogoleff","id":4534405,"avatar_url":"https://avatars.githubusercontent.com/u/4534405?v=3","gravatar_id":"","url":"https://api.github.com/users/gogoleff","html_url":"https://github.com/gogoleff","followers_url":"https://api.github.com/users/gogoleff/followers","following_url":"https://api.github.com/users/gogoleff/following{/other_user}","gists_url":"https://api.github.com/users/gogoleff/gists{/gist_id}","starred_url":"https://api.github.com/users/gogoleff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogoleff/subscriptions","organizations_url":"https://api.github.com/users/gogoleff/orgs","repos_url":"https://api.github.com/users/gogoleff/repos","events_url":"https://api.github.com/users/gogoleff/events{/privacy}","received_events_url":"https://api.github.com/users/gogoleff/received_events","type":"User","site_admin":false},"body":"Аналогичные ошибки в двух похожих методах.","created_at":"2015-11-21T07:16:30Z","updated_at":"2015-11-21T07:16:30Z","html_url":"https://github.com/urfu-2015/javascript-tasks-7/pull/42#discussion_r45542758","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/comments/45542758"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-7/pull/42#discussion_r45542758"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/42","id":50864059,"html_url":"https://github.com/urfu-2015/javascript-tasks-7/pull/42","diff_url":"https://github.com/urfu-2015/javascript-tasks-7/pull/42.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-7/pull/42.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/issues/42","number":42,"state":"open","locked":false,"title":"Долгих Наташа","user":{"login":"dolgihnatasha","id":6077501,"avatar_url":"https://avatars.githubusercontent.com/u/6077501?v=3","gravatar_id":"","url":"https://api.github.com/users/dolgihnatasha","html_url":"https://github.com/dolgihnatasha","followers_url":"https://api.github.com/users/dolgihnatasha/followers","following_url":"https://api.github.com/users/dolgihnatasha/following{/other_user}","gists_url":"https://api.github.com/users/dolgihnatasha/gists{/gist_id}","starred_url":"https://api.github.com/users/dolgihnatasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dolgihnatasha/subscriptions","organizations_url":"https://api.github.com/users/dolgihnatasha/orgs","repos_url":"https://api.github.com/users/dolgihnatasha/repos","events_url":"https://api.github.com/users/dolgihnatasha/events{/privacy}","received_events_url":"https://api.github.com/users/dolgihnatasha/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-16T20:51:32Z","updated_at":"2015-11-21T07:16:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5a8842630cf36ec565d6dde7d5ffbd722ef37d9","assignee":{"login":"gogoleff","id":4534405,"avatar_url":"https://avatars.githubusercontent.com/u/4534405?v=3","gravatar_id":"","url":"https://api.github.com/users/gogoleff","html_url":"https://github.com/gogoleff","followers_url":"https://api.github.com/users/gogoleff/followers","following_url":"https://api.github.com/users/gogoleff/following{/other_user}","gists_url":"https://api.github.com/users/gogoleff/gists{/gist_id}","starred_url":"https://api.github.com/users/gogoleff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogoleff/subscriptions","organizations_url":"https://api.github.com/users/gogoleff/orgs","repos_url":"https://api.github.com/users/gogoleff/repos","events_url":"https://api.github.com/users/gogoleff/events{/privacy}","received_events_url":"https://api.github.com/users/gogoleff/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/42/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/42/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/issues/42/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/statuses/91e56944b99f582a4e2e788157e3db5c807ad875","head":{"label":"dolgihnatasha:master","ref":"master","sha":"91e56944b99f582a4e2e788157e3db5c807ad875","user":{"login":"dolgihnatasha","id":6077501,"avatar_url":"https://avatars.githubusercontent.com/u/6077501?v=3","gravatar_id":"","url":"https://api.github.com/users/dolgihnatasha","html_url":"https://github.com/dolgihnatasha","followers_url":"https://api.github.com/users/dolgihnatasha/followers","following_url":"https://api.github.com/users/dolgihnatasha/following{/other_user}","gists_url":"https://api.github.com/users/dolgihnatasha/gists{/gist_id}","starred_url":"https://api.github.com/users/dolgihnatasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dolgihnatasha/subscriptions","organizations_url":"https://api.github.com/users/dolgihnatasha/orgs","repos_url":"https://api.github.com/users/dolgihnatasha/repos","events_url":"https://api.github.com/users/dolgihnatasha/events{/privacy}","received_events_url":"https://api.github.com/users/dolgihnatasha/received_events","type":"User","site_admin":false},"repo":{"id":46281137,"name":"javascript-tasks-7","full_name":"dolgihnatasha/javascript-tasks-7","owner":{"login":"dolgihnatasha","id":6077501,"avatar_url":"https://avatars.githubusercontent.com/u/6077501?v=3","gravatar_id":"","url":"https://api.github.com/users/dolgihnatasha","html_url":"https://github.com/dolgihnatasha","followers_url":"https://api.github.com/users/dolgihnatasha/followers","following_url":"https://api.github.com/users/dolgihnatasha/following{/other_user}","gists_url":"https://api.github.com/users/dolgihnatasha/gists{/gist_id}","starred_url":"https://api.github.com/users/dolgihnatasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dolgihnatasha/subscriptions","organizations_url":"https://api.github.com/users/dolgihnatasha/orgs","repos_url":"https://api.github.com/users/dolgihnatasha/repos","events_url":"https://api.github.com/users/dolgihnatasha/events{/privacy}","received_events_url":"https://api.github.com/users/dolgihnatasha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dolgihnatasha/javascript-tasks-7","description":"Задача к лекции «Прототипы»","fork":true,"url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7","forks_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/forks","keys_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/teams","hooks_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/hooks","issue_events_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/issues/events{/number}","events_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/events","assignees_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/assignees{/user}","branches_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/branches{/branch}","tags_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/tags","blobs_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/git/refs{/sha}","trees_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/statuses/{sha}","languages_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/languages","stargazers_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/stargazers","contributors_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/contributors","subscribers_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/subscribers","subscription_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/subscription","commits_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/commits{/sha}","git_commits_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/git/commits{/sha}","comments_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/comments{/number}","issue_comment_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/issues/comments{/number}","contents_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/contents/{+path}","compare_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/merges","archive_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/downloads","issues_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/issues{/number}","pulls_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/pulls{/number}","milestones_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/milestones{/number}","notifications_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/labels{/name}","releases_url":"https://api.github.com/repos/dolgihnatasha/javascript-tasks-7/releases{/id}","created_at":"2015-11-16T14:51:06Z","updated_at":"2015-11-16T14:51:07Z","pushed_at":"2015-11-20T11:43:55Z","git_url":"git://github.com/dolgihnatasha/javascript-tasks-7.git","ssh_url":"git@github.com:dolgihnatasha/javascript-tasks-7.git","clone_url":"https://github.com/dolgihnatasha/javascript-tasks-7.git","svn_url":"https://github.com/dolgihnatasha/javascript-tasks-7","homepage":"","size":11,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2015:master","ref":"master","sha":"fc0b1e2ad14a21f600f4ee446dff7717716aa059","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":45921264,"name":"javascript-tasks-7","full_name":"urfu-2015/javascript-tasks-7","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/javascript-tasks-7","description":"Задача к лекции «Прототипы»","fork":false,"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7","forks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/forks","keys_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/teams","hooks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/events","assignees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/tags","blobs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/subscription","commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/merges","archive_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/downloads","issues_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/releases{/id}","created_at":"2015-11-10T15:32:46Z","updated_at":"2015-11-10T15:50:17Z","pushed_at":"2015-11-20T21:08:58Z","git_url":"git://github.com/urfu-2015/javascript-tasks-7.git","ssh_url":"git@github.com:urfu-2015/javascript-tasks-7.git","clone_url":"https://github.com/urfu-2015/javascript-tasks-7.git","svn_url":"https://github.com/urfu-2015/javascript-tasks-7","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":33,"forks":45,"open_issues":33,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/42"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-7/pull/42"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/issues/42"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-7/statuses/91e56944b99f582a4e2e788157e3db5c807ad875"}}}}