Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index a917dbdbe3a52b2641613063381fc10d6632e71a..da7445cff36af731cb9f1147661b3f42eb76ef7d 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1104,7 +1104,7 @@ void Shell::ReadBuffer(const v8::FunctionCallbackInfo<v8::Value>& args) { |
} |
Handle<v8::ArrayBuffer> buffer = ArrayBuffer::New(data, length); |
v8::Persistent<v8::Value> weak_handle(isolate, buffer); |
- weak_handle.MakeWeak(isolate, data, ReadBufferWeakCallback); |
+ weak_handle.MakeWeak(data, ReadBufferWeakCallback); |
weak_handle.MarkIndependent(); |
isolate->AdjustAmountOfExternalAllocatedMemory(length); |