Commit Graph

1 Commits (943c396b86103a903af1933e4a5283c8edce2302)

Author SHA1 Message Date
Ben Noordhuis 8c02f9b7c8 buffer: throw from constructor if length > kMaxLength
Throw, don't abort. `new Buffer(0x3fffffff + 1)` used to bring down the process
with the following error message:

  FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() length
  exceeds max acceptable value

Fixes .
2012-03-09 23:57:03 +01:00