From: yangguo@chromium.org Date: Mon, 24 Jun 2013 13:15:07 +0000 (+0000) Subject: Do not use deprecated MakeWeak in d8. X-Git-Tag: upstream/4.7.83~13712 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c63a5255b48af82b5ca969194db4161856440ea6;p=platform%2Fupstream%2Fv8.git 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 --- 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);