[core][js] fix disambiguation