[core][js] gc_engine as object