https://github.com/freedomjs/freedom/commit/68e5987d64fd9391a7d4684e22be2d1eea59348c