use `assert` instead of `throw` consistently
use `assert` instead of `throw` consistently

LiuDeng/buffer,LiuDeng/buffer,nolanlawson/buffer,SAGV/buffer,mafintosh/buffer,loon3/buffer,beni55/buffer,btd/buffer,feross/buffer,SAGV/buffer,beni55/buffer,nolanlawson/buffer,feross/buffer,feross/buffer,LinusU/buffer,jessetane/buffer,LinusU/buffer,kawanet/buffer,kawanet/buffer,mafintosh/buffer,loon3/buffer,btd/buffer