https://github.com/freedomjs/freedom/commit/4abab23c9f6158cc5b55982e5717d460ef5f5066