Remove unused JSCompiler.register method
Allow compat flag in test specs