https://github.com/freedomjs/freedom/commit/1125982b5b5c4a66b821d311a602b2a74dc50543