{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1453","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1453/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1453/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1453/events","html_url":"https://github.com/lodash/lodash/issues/1453","id":105714834,"number":1453,"title":"Node 4 Buffer merge problem","user":{"login":"aaronmccall","id":464531,"avatar_url":"https://avatars.githubusercontent.com/u/464531?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronmccall","html_url":"https://github.com/aaronmccall","followers_url":"https://api.github.com/users/aaronmccall/followers","following_url":"https://api.github.com/users/aaronmccall/following{/other_user}","gists_url":"https://api.github.com/users/aaronmccall/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronmccall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronmccall/subscriptions","organizations_url":"https://api.github.com/users/aaronmccall/orgs","repos_url":"https://api.github.com/users/aaronmccall/repos","events_url":"https://api.github.com/users/aaronmccall/events{/privacy}","received_events_url":"https://api.github.com/users/aaronmccall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/lodash/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-10T01:28:37Z","updated_at":"2015-09-10T17:08:08Z","closed_at":"2015-09-10T05:06:30Z","body":"I'm seeing a new behavior in lodash.merge@3.3.2 in Node 4. Previously, Buffers were preserved, but now they seem to be being converted into Arrays. To reproduce:\r\n\r\n```javascript\r\nvar merge = require('lodash.merge');\r\nvar target = {}\r\nmerge(target, {\r\n  buffer: new Buffer([0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80])\r\n});\r\n\r\nconsole.log(target);\r\n```\r\n\r\nUnder Node 0.12\r\n```javascript\r\n// outputs:\r\n{ buffer: <Buffer 01 02 04 08 10 20 40 80> }\r\n```\r\n\r\nUnder Node 4\r\n```javascript\r\n// outputs:\r\n{ buffer: [1, 2, 4, 8, 16, 32, 64, 128] }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/139311739","html_url":"https://github.com/lodash/lodash/issues/1453#issuecomment-139311739","issue_url":"https://api.github.com/repos/lodash/lodash/issues/1453","id":139311739,"user":{"login":"jdalton","id":4303,"avatar_url":"https://avatars.githubusercontent.com/u/4303?v=3","gravatar_id":"","url":"https://api.github.com/users/jdalton","html_url":"https://github.com/jdalton","followers_url":"https://api.github.com/users/jdalton/followers","following_url":"https://api.github.com/users/jdalton/following{/other_user}","gists_url":"https://api.github.com/users/jdalton/gists{/gist_id}","starred_url":"https://api.github.com/users/jdalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdalton/subscriptions","organizations_url":"https://api.github.com/users/jdalton/orgs","repos_url":"https://api.github.com/users/jdalton/repos","events_url":"https://api.github.com/users/jdalton/events{/privacy}","received_events_url":"https://api.github.com/users/jdalton/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T17:08:08Z","updated_at":"2015-09-10T17:08:08Z","body":"```js\r\n_.merge(a, b, function(a, b) {\r\n  if (b instanceof Buffer) {\r\n    return b;\r\n  }\r\n});\r\n```"}}