trevnorris/cbuffer — pull request #13 by iamolivinius (2014-07-16 10:02:47+00:00)
Title: Adds error message to ensure a valid buffer object after initialization

Otherwise if a user would init a CBuffer like

`var buffer = new CBuffer()`

he would get a "bad" object which would throw less meaningful error messages like

`TypeError: Cannot set property 'NaN' of undefined` on `buffer.push(0)`