I figured out how to use selenium/webdriver, so now we test loading all the files we can. I have tested "corrupting" the generated javascript (adding an exception) and it does catch this error, which is how a threejs upgrade gone bad would behave.
cc @gladk @crusoe