https://github.com/freedomjs/freedom/commit/f0e6bc2d500d29a16e4ac3d9be52b8946ef1a81f