Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 73e438b10d694ff72638a73fdbcf47f22bb74ada..8ac13cf41019c47a53d292c4bee896be39b44d74 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1133,7 +1133,8 @@ void Shell::ReadBuffer(const v8::FunctionCallbackInfo<v8::Value>& args) { |
Throw(args.GetIsolate(), "Error reading file"); |
return; |
} |
- Handle<v8::ArrayBuffer> buffer = ArrayBuffer::New(isolate, data, length); |
+ Handle<v8::ArrayBuffer> buffer = |
+ ArrayBuffer::New(isolate, data->data, length); |
data->handle.Reset(isolate, buffer); |
data->handle.SetWeak(data, ReadBufferWeakCallback); |
data->handle.MarkIndependent(); |