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