diff options
Diffstat (limited to 'src/string_bytes.cc')
-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 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)) { |