- Update documentation of Dart_NewWeakPersistentHandle.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//86233003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30643 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
iposva@google.com 2013-11-25 20:48:17 +00:00
parent 290d4f0cd6
commit b1fdbb40d1

View file

@ -409,6 +409,12 @@ DART_EXPORT void Dart_DeletePersistentHandle(Dart_PersistentHandle object);
* This handle has the lifetime of the current isolate unless it is
* explicitly deallocated by calling Dart_DeletePersistentHandle.
*
* If the object becomes unreachable the callback is invoked with the weak
* persistent handle and the peer as arguments. This gives the native code the
* ability to cleanup data associated with the object and to delete the weak
* persistent handle. It is illegal to call into the VM from the callback,
* except to delete the weak persistent handle.
*
* Requires there to be a current isolate.
*
* \param object An object.