https://github.com/freedomjs/freedom/commit/2b7a8afc867fc355a2c9a7825aee047262c5b611