pgriess/node-strtok — pull request #10 by DullReferenceException (2014-05-01 02:50:21+00:00)
Title: Invalid BufferType validation

I encountered a library using `strtok2` that is unfortunately constructing a `BufferType`, passing in `NaN` for the length. Unfortunately, this is causing the parser to get into a state from whence there is no return. By throwing an exception, this should notify those that are calling `BufferType` incorrectly that an error has occurred so that at the very least, an uncaught exception will occur.