aboutsummaryrefslogtreecommitdiff
path: root/src/node_buffer.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-04-29 20:03:15 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2015-04-30 01:05:32 +0200
commitccb199af1770ae5ee190c8f6752469931df9a51e (patch)
treebf769b1919043038025ed928d002405236635822 /src/node_buffer.cc
parent609fa0de039f4285c402ac3f646fcd5d4828d3aa (diff)
downloadandroid-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.cc2
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);