lib: handle throw undefined
in assert.throws()
#18029
+18
−3
Closed