https://github.com/freedomjs/freedom/commit/5771ac383d7dcae945d0eeb8adaf0065ef2f5ea5