https://github.com/freedomjs/freedom/commit/57a65de07db882c49e34474acec03c066dc5cdd2