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