mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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>
This commit is contained in:
1 parent
3dafdc57d1
commit
f696c9efab
1 file changed
+1
-1
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user