[js] test assertion within parentasised expression
[js] propogate exception in case of error in first atom