Commit 690821c
committed
safer: wrap process.binding call in try-catch
This way, it won't fail in environments where process.binding is unsupported.
That was used to determine kStringMaxLength on older Node.js versions.
In that case, fall back to undefined - we can't determine kStringMaxLength.1 parent 57123bc commit 690821c
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
0 commit comments