[core][js] gc engine: fix assignation to dErrorPriority