https://github.com/freedomjs/freedom/commit/48d078e6b7f062fecf55144a836f32ac498c5c2c