https://github.com/freedomjs/freedom/commit/21f6bf272b8f6a31d80ea5d4c443df07b667cd5d