{"action":"created","comment":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments/33661982","id":33661982,"diff_hunk":"@@ -96,7 +96,7 @@ var Utils = module.exports = {\n   cloneDeep: function(obj, fn) {\n     return lodash.cloneDeep(obj, function (elem) {\n       // Preserve special data-types like `fn` across clones. _.get() is used for checking up the prototype chain\n-      if (elem && typeof elem.clone === 'function') {return elem.clone(); }\n+      if (elem && !Array.isArray(elem) && !lodash.isPlainObject(elem) && typeof elem.clone === 'function') {return elem.clone(); }","path":"lib/utils.js","position":5,"original_position":5,"commit_id":"eff36923d0e2209896a2286c5ae1f37d5e67c46d","original_commit_id":"eff36923d0e2209896a2286c5ae1f37d5e67c46d","user":{"login":"dantman","id":53399,"avatar_url":"https://avatars.githubusercontent.com/u/53399?v=3","gravatar_id":"","url":"https://api.github.com/users/dantman","html_url":"https://github.com/dantman","followers_url":"https://api.github.com/users/dantman/followers","following_url":"https://api.github.com/users/dantman/following{/other_user}","gists_url":"https://api.github.com/users/dantman/gists{/gist_id}","starred_url":"https://api.github.com/users/dantman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantman/subscriptions","organizations_url":"https://api.github.com/users/dantman/orgs","repos_url":"https://api.github.com/users/dantman/repos","events_url":"https://api.github.com/users/dantman/events{/privacy}","received_events_url":"https://api.github.com/users/dantman/received_events","type":"User","site_admin":false},"body":"I thought it would be best to just leave whether plain objects get special handling up to the `fn`.","created_at":"2015-07-01T09:25:08Z","updated_at":"2015-07-01T09:25:08Z","html_url":"https://github.com/sequelize/sequelize/pull/4041#discussion_r33661982","pull_request_url":"https://api.github.com/repos/sequelize/sequelize/pulls/4041","_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments/33661982"},"html":{"href":"https://github.com/sequelize/sequelize/pull/4041#discussion_r33661982"},"pull_request":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4041"}}},"pull_request":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/4041","id":38961120,"html_url":"https://github.com/sequelize/sequelize/pull/4041","diff_url":"https://github.com/sequelize/sequelize/pull/4041.diff","patch_url":"https://github.com/sequelize/sequelize/pull/4041.patch","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4041","number":4041,"state":"open","locked":false,"title":"Fix  #4040, do not call .clone method on plain objects or arrays.","user":{"login":"dantman","id":53399,"avatar_url":"https://avatars.githubusercontent.com/u/53399?v=3","gravatar_id":"","url":"https://api.github.com/users/dantman","html_url":"https://github.com/dantman","followers_url":"https://api.github.com/users/dantman/followers","following_url":"https://api.github.com/users/dantman/following{/other_user}","gists_url":"https://api.github.com/users/dantman/gists{/gist_id}","starred_url":"https://api.github.com/users/dantman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantman/subscriptions","organizations_url":"https://api.github.com/users/dantman/orgs","repos_url":"https://api.github.com/users/dantman/repos","events_url":"https://api.github.com/users/dantman/events{/privacy}","received_events_url":"https://api.github.com/users/dantman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-01T09:00:13Z","updated_at":"2015-07-01T09:25:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e67f28165e78e6d8812d6db42133f1dfc2cdd6b9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sequelize/sequelize/pulls/4041/commits","review_comments_url":"https://api.github.com/repos/sequelize/sequelize/pulls/4041/comments","review_comment_url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4041/comments","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/eff36923d0e2209896a2286c5ae1f37d5e67c46d","head":{"label":"dantman:master","ref":"master","sha":"eff36923d0e2209896a2286c5ae1f37d5e67c46d","user":{"login":"dantman","id":53399,"avatar_url":"https://avatars.githubusercontent.com/u/53399?v=3","gravatar_id":"","url":"https://api.github.com/users/dantman","html_url":"https://github.com/dantman","followers_url":"https://api.github.com/users/dantman/followers","following_url":"https://api.github.com/users/dantman/following{/other_user}","gists_url":"https://api.github.com/users/dantman/gists{/gist_id}","starred_url":"https://api.github.com/users/dantman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantman/subscriptions","organizations_url":"https://api.github.com/users/dantman/orgs","repos_url":"https://api.github.com/users/dantman/repos","events_url":"https://api.github.com/users/dantman/events{/privacy}","received_events_url":"https://api.github.com/users/dantman/received_events","type":"User","site_admin":false},"repo":{"id":38360719,"name":"sequelize","full_name":"dantman/sequelize","owner":{"login":"dantman","id":53399,"avatar_url":"https://avatars.githubusercontent.com/u/53399?v=3","gravatar_id":"","url":"https://api.github.com/users/dantman","html_url":"https://github.com/dantman","followers_url":"https://api.github.com/users/dantman/followers","following_url":"https://api.github.com/users/dantman/following{/other_user}","gists_url":"https://api.github.com/users/dantman/gists{/gist_id}","starred_url":"https://api.github.com/users/dantman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantman/subscriptions","organizations_url":"https://api.github.com/users/dantman/orgs","repos_url":"https://api.github.com/users/dantman/repos","events_url":"https://api.github.com/users/dantman/events{/privacy}","received_events_url":"https://api.github.com/users/dantman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dantman/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":true,"url":"https://api.github.com/repos/dantman/sequelize","forks_url":"https://api.github.com/repos/dantman/sequelize/forks","keys_url":"https://api.github.com/repos/dantman/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dantman/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dantman/sequelize/teams","hooks_url":"https://api.github.com/repos/dantman/sequelize/hooks","issue_events_url":"https://api.github.com/repos/dantman/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/dantman/sequelize/events","assignees_url":"https://api.github.com/repos/dantman/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/dantman/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/dantman/sequelize/tags","blobs_url":"https://api.github.com/repos/dantman/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dantman/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dantman/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/dantman/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dantman/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/dantman/sequelize/languages","stargazers_url":"https://api.github.com/repos/dantman/sequelize/stargazers","contributors_url":"https://api.github.com/repos/dantman/sequelize/contributors","subscribers_url":"https://api.github.com/repos/dantman/sequelize/subscribers","subscription_url":"https://api.github.com/repos/dantman/sequelize/subscription","commits_url":"https://api.github.com/repos/dantman/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/dantman/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/dantman/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/dantman/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/dantman/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/dantman/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dantman/sequelize/merges","archive_url":"https://api.github.com/repos/dantman/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dantman/sequelize/downloads","issues_url":"https://api.github.com/repos/dantman/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/dantman/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/dantman/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/dantman/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dantman/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/dantman/sequelize/releases{/id}","created_at":"2015-07-01T08:59:06Z","updated_at":"2015-07-01T08:59:09Z","pushed_at":"2015-07-01T08:59:38Z","git_url":"git://github.com/dantman/sequelize.git","ssh_url":"git@github.com:dantman/sequelize.git","clone_url":"https://github.com/dantman/sequelize.git","svn_url":"https://github.com/dantman/sequelize","homepage":"http://sequelizejs.com","size":58042,"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":"sequelize:master","ref":"master","sha":"eaf197fa7e6cb4d6b52d3d13493e6ae81352fdf8","user":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"repo":{"id":790359,"name":"sequelize","full_name":"sequelize/sequelize","owner":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sequelize/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":false,"url":"https://api.github.com/repos/sequelize/sequelize","forks_url":"https://api.github.com/repos/sequelize/sequelize/forks","keys_url":"https://api.github.com/repos/sequelize/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sequelize/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sequelize/sequelize/teams","hooks_url":"https://api.github.com/repos/sequelize/sequelize/hooks","issue_events_url":"https://api.github.com/repos/sequelize/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/sequelize/sequelize/events","assignees_url":"https://api.github.com/repos/sequelize/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/sequelize/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/sequelize/sequelize/tags","blobs_url":"https://api.github.com/repos/sequelize/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sequelize/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sequelize/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sequelize/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/sequelize/sequelize/languages","stargazers_url":"https://api.github.com/repos/sequelize/sequelize/stargazers","contributors_url":"https://api.github.com/repos/sequelize/sequelize/contributors","subscribers_url":"https://api.github.com/repos/sequelize/sequelize/subscribers","subscription_url":"https://api.github.com/repos/sequelize/sequelize/subscription","commits_url":"https://api.github.com/repos/sequelize/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sequelize/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sequelize/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sequelize/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sequelize/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/sequelize/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sequelize/sequelize/merges","archive_url":"https://api.github.com/repos/sequelize/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sequelize/sequelize/downloads","issues_url":"https://api.github.com/repos/sequelize/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/sequelize/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/sequelize/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/sequelize/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sequelize/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/sequelize/sequelize/releases{/id}","created_at":"2010-07-22T07:11:11Z","updated_at":"2015-07-01T07:04:47Z","pushed_at":"2015-07-01T09:00:13Z","git_url":"git://github.com/sequelize/sequelize.git","ssh_url":"git@github.com:sequelize/sequelize.git","clone_url":"https://github.com/sequelize/sequelize.git","svn_url":"https://github.com/sequelize/sequelize","homepage":"http://sequelizejs.com","size":58042,"stargazers_count":4037,"watchers_count":4037,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":910,"mirror_url":null,"open_issues_count":437,"forks":910,"open_issues":437,"watchers":4037,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4041"},"html":{"href":"https://github.com/sequelize/sequelize/pull/4041"},"issue":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/4041"},"comments":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/4041/comments"},"review_comments":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4041/comments"},"review_comment":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4041/commits"},"statuses":{"href":"https://api.github.com/repos/sequelize/sequelize/statuses/eff36923d0e2209896a2286c5ae1f37d5e67c46d"}}}}