Update repository.js for TSan builds