https://github.com/freedomjs/freedom/commit/430691fb57b2bc9ad9d01bd9c4ce9eef7e97f91b