[core][js] gc engine: fix define_from