diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-04-29 20:03:15 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-04-30 01:05:32 +0200 |
commit | ccb199af1770ae5ee190c8f6752469931df9a51e (patch) | |
tree | bf769b1919043038025ed928d002405236635822 /src/node_buffer.cc | |
parent | 609fa0de039f4285c402ac3f646fcd5d4828d3aa (diff) | |
download | android-node-v8-ccb199af1770ae5ee190c8f6752469931df9a51e.tar.gz android-node-v8-ccb199af1770ae5ee190c8f6752469931df9a51e.tar.bz2 android-node-v8-ccb199af1770ae5ee190c8f6752469931df9a51e.zip |
src: fix deprecation warnings
The previous commit enables deprecation warnings, this commit fixes
the handful of offending sites where the isolate was not explicitly
being passed around.
PR-URL: https://github.com/iojs/io.js/pull/1565
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src/node_buffer.cc')
-rw-r--r-- | src/node_buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 61b80c622a..a061867587 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -98,7 +98,7 @@ Local<Object> New(Isolate* isolate, Handle<String> string, enum encoding enc) { size_t length = StringBytes::Size(isolate, string, enc); - Local<Object> buf = New(length); + Local<Object> buf = New(isolate, length); char* data = Buffer::Data(buf); StringBytes::Write(isolate, data, length, string, enc); |