https://github.com/freedomjs/freedom/commit/c0796f8c4011a585d65482815a576c40378a1537