Skip to content

vm: store MicrotaskQueue in ContextifyContext directly

Rodrigo Muino Tomonari requested to merge github/fork/joyeecheung/mtq-wrap into main

Previously the ContextifyContext holds a MicrotaskQueueWrap which in turns holds a MicrotaskQueue in a shared pointer. The indirection is actually unnecessary, we can directly hold the MicrotaskQueue via a unique pointer in ContextifyContext, the lifetime would still remain the same but the graph would be simpler, and this removes the additional JS -> C++ to create the wrapper object.

Merge request reports

Loading