https://github.com/freedomjs/freedom/commit/0300bd0ca59a3de84e8848f7fb7e0068cc3201d6