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