summaryrefslogtreecommitdiff
path: root/src/string_bytes.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-05-01 17:18:16 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2015-05-05 00:41:31 +0200
commitf696c9efabd7efc962c6f01ac111c5809117ba95 (patch)
treeb4feab58055aafdbf43376d96fded3ac25381f6d /src/string_bytes.cc
parent3dafdc57d1558c1de58f12a5d47e83c66d8d0bc2 (diff)
downloadandroid-node-v8-f696c9efabd7efc962c6f01ac111c5809117ba95.tar.gz
android-node-v8-f696c9efabd7efc962c6f01ac111c5809117ba95.tar.bz2
android-node-v8-f696c9efabd7efc962c6f01ac111c5809117ba95.zip
src: fix deprecated use of Buffer::New()
Pass the isolate explicitly. Overlooked in commit ccb199a ("src: fix deprecation warnings") because g++ 4.8 and 4.9 don't warn for it whereas g++ 5.1 does. PR-URL: https://github.com/iojs/io.js/pull/1577 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src/string_bytes.cc')
-rw-r--r--src/string_bytes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_bytes.cc b/src/string_bytes.cc
index 4f896ace3f..0042e9ac1c 100644
--- a/src/string_bytes.cc
+++ b/src/string_bytes.cc
@@ -681,7 +681,7 @@ Local<Value> StringBytes::Encode(Isolate* isolate,
Local<String> val;
switch (encoding) {
case BUFFER:
- return scope.Escape(Buffer::New(buf, buflen));
+ return scope.Escape(Buffer::New(isolate, buf, buflen));
case ASCII:
if (contains_non_ascii(buf, buflen)) {