Commit 7c00ec2
committed
buffer: improve Buffer.byteLength(string, encoding)
When string is empty, it will running into binding also.
It make the performance is wasted.1 parent 10e31ba commit 7c00ec2
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
| |||
0 commit comments