Mirror browserify's own legacy checks.