diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-08-13 13:53:39 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-08-13 20:04:58 +0200 |
commit | 88419479ccb6384473339f09e5c55f234f4ee194 (patch) | |
tree | 1b867aef154405917cb92b29263e34834c49ebbe /src/stream_wrap.cc | |
parent | 9a3929dcbfd835721b514a781cdca1b7fb911cf0 (diff) | |
download | android-node-v8-88419479ccb6384473339f09e5c55f234f4ee194.tar.gz android-node-v8-88419479ccb6384473339f09e5c55f234f4ee194.tar.bz2 android-node-v8-88419479ccb6384473339f09e5c55f234f4ee194.zip |
src: rename Buffer::Use() to Buffer::New()
Fixes: https://github.com/nodejs/node/issues/2308
PR-URL: https://github.com/nodejs/node/pull/2352
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r-- | src/stream_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index 3097eac485..ae941f5edb 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -223,7 +223,7 @@ void StreamWrap::OnReadImpl(ssize_t nread, CHECK_EQ(pending, UV_UNKNOWN_HANDLE); } - Local<Object> obj = Buffer::Use(env, base, nread).ToLocalChecked(); + Local<Object> obj = Buffer::New(env, base, nread).ToLocalChecked(); wrap->EmitData(nread, obj, pending_obj); } |