From c63a5255b48af82b5ca969194db4161856440ea6 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Mon, 24 Jun 2013 13:15:07 +0000 Subject: [PATCH] Do not use deprecated MakeWeak in d8. R=svenpanne@chromium.org BUG= Review URL: https://codereview.chromium.org/17589009 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15290 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/d8.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d8.cc b/src/d8.cc index 4bfdb51..65af987 100644 --- a/src/d8.cc +++ b/src/d8.cc @@ -1105,7 +1105,7 @@ void Shell::ReadBuffer(const v8::FunctionCallbackInfo& args) { } Handle buffer = ArrayBuffer::New(data, length); v8::Persistent weak_handle(isolate, buffer); - weak_handle.MakeWeak(isolate, data, ReadBufferWeakCallback); + weak_handle.MakeWeak(data, ReadBufferWeakCallback); weak_handle.MarkIndependent(); isolate->AdjustAmountOfExternalAllocatedMemory(length); -- 2.7.4