v8::IdleNotifications fires WeakCallbacks only once

26 views
Skip to first unread message

Murat Gözcü

unread,
Apr 3, 2014, 3:53:18 PM4/3/14
to v8-u...@googlegroups.com
Hi.

priorly, sorry for missed english knowledge.


i call "while(!V8::IdleNotification()) {};" after script run.


it fires weakcallbacks successfully.

but second and more calls not fire callbacks.

are you know why it is ?


Source:

v8::Isolate *isolate=Isolate::GetCurrent();
HandleScope handle_scope(isolate);
Local<Context> context = Context::New(isolate);
Context::Scope context_scope(context);

V8Manager::RegisterObjectCreateFunction(context,"TTestClass",TJSTestClass::Creator);

Script="var tmpObject=new TTestClass();\r\ntmpObject=null;";

ScriptResult=V8Manager::RunScript(Script.Value(),context );

V8Manager::CheckScriptRunResult(ScriptResult);

while(!V8::IdleNotification()) {};  //only fires weak callbacks, once.
Reply all
Reply to author
Forward
0 new messages