Runtime+lib: wrap js error