Showing with 1 addition and 2 deletions.
  1. +1 −2 src/string_bytes.cc
@@ -556,8 +556,7 @@ Local<Value> StringBytes::Encode(const char* buf,
Local<String> val;
switch (encoding) {
case BUFFER:
return scope.Close(
Buffer::New(static_cast<const char*>(buf), buflen)->handle_);
return scope.Close(Buffer::New(buf, buflen)->handle_);

case ASCII:
if (contains_non_ascii(buf, buflen)) {