]> zoso.dev Git - buffer.git/commit
significant code reshuffling to match node core style
authorFeross Aboukhadijeh <feross@feross.org>
Fri, 12 Sep 2014 11:17:36 +0000 (12:17 +0100)
committerFeross Aboukhadijeh <feross@feross.org>
Fri, 12 Sep 2014 11:17:36 +0000 (12:17 +0100)
commit4f1ba54fa333f07cc73f5930fdca3bd270780717
treeb9023a04c25f8dc8950aaa5194877ec5fadb2b05
parent846c642bf8e419d906a1daeacb88bc830ff2c292
significant code reshuffling to match node core style

- check for kMaxLength
- throw specific Error types (TypeError, RangeError, etc.)
- order methods same as in node core
- match implementation of some methods better, like toString
index.js