Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index d0ca5504c3297d903b62c0ec641f17a9ed670244..7c5df463d334564347bc6e0fd273982a48f09efd 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1126,7 +1126,7 @@ void Shell::ReadBuffer(const v8::FunctionCallbackInfo<v8::Value>& args) { |
Throw(args.GetIsolate(), "Error reading file"); |
return; |
} |
- Handle<v8::ArrayBuffer> buffer = ArrayBuffer::New(data, length); |
+ Handle<v8::ArrayBuffer> buffer = ArrayBuffer::New(isolate, data, length); |
v8::Persistent<v8::ArrayBuffer> weak_handle(isolate, buffer); |
weak_handle.MakeWeak(data, ReadBufferWeakCallback); |
weak_handle.MarkIndependent(); |