Skip to content
Myr

Avoid relying on Node’s internals (#125)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`process.binding()` is not a public API, and should not be used. Luckily, Node recently introduced an API that does exactly what execa needs: https://github.com/nodejs/node/pull/18186 So use that instead and keep the old path as a fallback.

authored by Anna Henningsen · committed by Sindre Sorhus · parent b019895 · Browse files · 2 files+24 added−23 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+24 added−23 removed

  • tests:+4 added−5 removed
  • other:+20 added−18 removed

2 files+24 added−23 removed

modified:lib/errname.js+20 added-18 removed
modified:test/errname.js+4 added-5 removed