https://github.com/freedomjs/freedom/commit/13f8c22df2ed994e3fe9f2431c392eb7ebd1ea16