Extract the "scanning for endstream command" part of `Parser.makeStream` into a helper method
Extract the "scanning for endstream command" part of `Parser.makeStream` into a helper method

With this code now living in a separate method, it can be simplified slightly (e.g. by using early returns).

macroplant/pdf.js,nawawi/pdf.js,nawawi/pdf.js,Snuffleupagus/pdf.js,timvandermeij/pdf.js,xavier114fch/pdf.js,timvandermeij/pdf.js,mozilla/pdf.js,Shoobx/pdf.js,xavier114fch/pdf.js,mukulmishra18/pdf.js,showpad/mozilla-pdf.js,mainegreen/pdf.js,macroplant/pdf.js,macroplant/pdf.js,Shoobx/pdf.js,showpad/mozilla-pdf.js,mukulmishra18/pdf.js,caremerge/pdf.js,timvandermeij/pdf.js,mozilla/pdf.js,Snuffleupagus/pdf.js,mainegreen/pdf.js,showpad/mozilla-pdf.js,caremerge/pdf.js,nawawi/pdf.js,Shoobx/pdf.js,mozilla/pdf.js,Snuffleupagus/pdf.js