https://github.com/freedomjs/freedom/commit/434f59992f97eb2b1d8278cc0badc9475f66d6ba