-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undocumented fs.FSWatcher::start() trips assertion in FSEventWrap::Start #17430
Comments
Please try not to use any language other than vanilla JavaScript when reporting issues here. Simplified JavaScript repro: var fs = require('fs');
fs.watch('/dev/null', () => {}).start(); |
Indeed; though the fear when it comes to these things is that userland may already be using
Of course! |
PR-URL: #17432 Fixes: #17430 Reviewed-By: James M Snell <[email protected]>
PR-URL: #17432 Fixes: #17430 Reviewed-By: James M Snell <[email protected]>
PR-URL: #17432 Fixes: #17430 Reviewed-By: James M Snell <[email protected]>
PR-URL: #17432 Fixes: #17430 Reviewed-By: James M Snell <[email protected]>
I randomly discovered the undocumented start() method on the FSWatcher prototype and started experimenting with it before finding out it's not documented. I created a repro script for you, shown in the "screenshot" following this paragraph.
I was able to repro the bug in NodeJS
v8.9.1
onLinux ec2-instance-hostname 4.4.20-0.1.fm.237.49.326.metal1.x86_64 #1 SMP Wed Sep 21 11:35:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
with a slightly different traceback. I'll try it on Windows when I get home.
I guess the issue is that the method exists at all? I hope this report is helpful. :)
The text was updated successfully, but these errors were encountered: