https://github.com/freedomjs/freedom/commit/794470e4e9116d2664e32137dfcaae2063f7bd07