v8binding: Stops using the copyable ver of v8::Persistent. (reland)
The first attempt: https://crrev.com/c/798820 Its revert: https://crrev.com/c/802715 The cause: Forgot to v8::Persistent::Reset in the dtor. I learnt that v8::Persistent provides two variations of copying. One actually copies, and the other actually shares the underlying slot. This patch changes CallbackFunctionBase::Persistent from the "share" version to the "copy" (= make another independent slot) version. Bug: 779036 Change-Id: Id088dfa5ac111dbcb314ee992c6ba626e3a6f8ce Reviewed-on: https://chromium-review.googlesource.com/802609Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#520912}
Showing
Please register or sign in to comment