slightly optimize call stack

master
Vitaliy Filippov 2016-07-25 14:38:04 +03:00
parent ef698aa61d
commit 006193174f
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ function runThread(generator, onsuccess, onerror)
thread._finishThrottleQueue = finishThrottleQueue.bind(thread);
thread._onsuccess = onsuccess;
thread._onerror = onerror;
thread();
callGen(thread, 'next', []);
return thread;
}