Zauberfisch/silverstripe-cms — comment on commit 149ef11aaf659008bcc70091c6ff89001501c627
File: javascript/AssetUploadForm.js line 50
By chillu:

This kind of debugging code is generally OK in a feature branch, but its also very easy to leak into the final version.
I don't think we need to do parameter checking in this case, particularly if the error message isn't really helpful ;)
But please add some JSDoc to explain what type the "file" parameter is.