void DisposeObject(const v8::WeakCallbackInfo<CJS_Object>& data) { CJS_Object* pJSObj = data.GetParameter(); pJSObj->Dispose(); data.SetSecondPassCallback(FreeObject); }
void V8AbstractEventListener::setWeakCallback(const v8::WeakCallbackInfo<V8AbstractEventListener>& data) { data.GetParameter()->m_listener.clear(); data.SetSecondPassCallback(secondWeakCallback); }
static void weakCallback(const v8::WeakCallbackInfo<ScriptState>& data) { data.GetParameter()->clearContext(); data.SetSecondPassCallback(derefCallback); }