Files
node/lib
Jackson Tian 8d0ca10752 buffer: make byteLength work with Buffer correctly
Make the byteLength work correctly when input is Buffer.

e.g:

```js
// The incomplete unicode string
Buffer.byteLength(new Buffer([0xe4, 0xb8, 0xad, 0xe6, 0x96]))
```
The old output: 9
The new output: 5

PR-URL: https://github.com/nodejs/node/pull/4738
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-01-18 08:54:38 -08:00
..
2016-01-16 19:54:25 +01:00
2015-10-08 17:32:08 -07:00
2015-12-02 11:05:11 -08:00
2016-01-16 19:54:25 +01:00
2016-01-07 03:39:15 -05:00
2016-01-16 19:54:25 +01:00
2015-12-25 13:05:23 -08:00
2015-06-11 20:24:44 +02:00
2016-01-16 19:54:25 +01:00
2015-12-25 13:05:23 -08:00
2015-01-31 23:47:29 -05:00