https://github.com/freedomjs/freedom/commit/341b018b367f241c90da6ed898ced0e12889a009