Use fs.realpathSync.native if available#5031
Conversation
|
I would strongly encourage not using |
|
Yeah 🙁 We could check for existence of |
|
Can you not try |
Codecov Report
@@ Coverage Diff @@
## master #5031 +/- ##
==========================================
- Coverage 60.73% 60.37% -0.36%
==========================================
Files 197 198 +1
Lines 6598 6640 +42
Branches 4 3 -1
==========================================
+ Hits 4007 4009 +2
- Misses 2591 2631 +40
Continue to review full report at Codecov.
|
I've now added usage of |
realpath callfs.realpathSync.native if available
|
Thanks for fixing this. I'm gonna merge it because the use of |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Fixes #5030
Node 9.2 includes nodejs/node#15776, which added more strict input checking (in addition to adding the API we really should be using). Passing in the encoding we want fixes the crash.
Test plan
Manual verification of node 9.2.