Reduce splitAt
to undefined in illegal contexts
#2835
+33
−6
Merged