diff --git a/src/node_buffer.cc b/src/node_buffer.cc index cfc2b49f296..a2402939f35 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -232,11 +232,6 @@ Handle Buffer::Utf8Write(const Arguments &args) { const char *p = buffer->data_ + offset; - if (s->Length() + offset > buffer->length_) { - return ThrowException(Exception::TypeError(String::New( - "Not enough space in Buffer for string"))); - } - int written = s->WriteUtf8((char*)p, buffer->length_ - offset); return scope.Close(Integer::New(written));