News for hackers. Stuff that matters.
Re:How JavaScript Works: deep dive into call, apply, and bind by exdsq on Saturday July 10, 2021 @12:13PM (#27794384)
This seems to be building on rocky foundations though. It's unlikely a functions entire test vector gets checked during testing. This is a known risk (you can't test everything) but by leaving all the functions under a public function untested there is no safety net.
Re:How JavaScript Works: deep dive into call, apply, and bind by moron4hire on Saturday July 10, 2021 @12:46PM (#27794677)
If the code of the private methods cannot be fully exercised through the class' public interface, then that code never executes and should not even be in the function.