[core][js] useless code