diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-05-01 18:18:16 +0300 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-05-05 01:41:31 +0300 |
commit | f696c9efabd7efc962c6f01ac111c5809117ba95 (patch) | |
tree | b4feab58055aafdbf43376d96fded3ac25381f6d /src | |
parent | 3dafdc57d1558c1de58f12a5d47e83c66d8d0bc2 (diff) |
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')
-rw-r--r-- | src/string_bytes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_bytes.cc b/src/string_bytes.cc index 4f896ace3fb..0042e9ac1c3 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)) { |