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