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