https://github.com/freedomjs/freedom/commit/4f7483de2fcecbdebf813a04675a8f1691760cee