Commit 9d2a7b8
committed
feat: Bind exported methods
So that code like this, which is increasingly common, doesn't fail
because `this` isn't bound to the right object.
```
const {getType} = require("mime");
getType("hello.txt");
```1 parent abcb6e1 commit 9d2a7b8
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
0 commit comments