summaryrefslogtreecommitdiff
path: root/src/string_bytes.cc
diff options
context:
space:
mode:
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)) {