https://github.com/freedomjs/freedom/commit/9501fed4940a6dfbf79c913a1e9c78ea4b0b08dc