Currently JSGlobalObject::queueTaskToEventLoop() takes a const JSGlobalObject* whose constness is removed in the implementation of this method in all derived classes. We should have JSGlobalObject::queueTaskToEventLoop() take a non-const JSGlobalObject* and remove the need to effectively const_cast<> it. This will also make the data types of the arguments to JSGlobalObject::queueTaskToEventLoop() match the data types for the same arguments passed to the analogous VM::queueMicrotask().
s/QueueTaskToEventLoopFunctionPtr/JSGlobalObject::queueTaskToEventLoop()
Actually, we should make QueueTaskToEventLoopFunctionPtr take JSGlobalObject& as all existing callers expect a non-const, non-null JSGlobalObject object.
Created attachment 309876 [details] Patch
Comment on attachment 309876 [details] Patch r=me
Comment on attachment 309876 [details] Patch Clearing flags on attachment: 309876 Committed r216768: <http://trac.webkit.org/changeset/216768>
All reviewed patches have been landed. Closing bug.