| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bdbfc0e commit 2262a34
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,17 @@ | |||
| 21 | 21 | ||
| 22 | 22 | 'use strict'; | |
| 23 | 23 | const common = require('../common'); | |
| 24 | + | ||
| 25 | + // Make sure the deletion event gets reported in the following scenario: | ||
| 26 | + // 1. Watch a file. | ||
| 27 | + // 2. The initial stat() goes okay. | ||
| 28 | + // 3. Something deletes the watched file. | ||
| 29 | + // 4. The second stat() fails with ENOENT. | ||
| 30 | + | ||
| 31 | + // The second stat() translates into the first 'change' event but a logic error | ||
| 32 | + // stopped it from getting emitted. | ||
| 33 | + // https://github.com/nodejs/node-v0.x-archive/issues/4027 | ||
| 34 | + | ||
| 24 | 35 | const assert = require('assert'); | |
| 25 | 36 | const path = require('path'); | |
| 26 | 37 | const fs = require('fs'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments