Commit b96c3f0
authored
Migrate off of process global and openStdin (microsoft#25569)
## Description
Based on
https://stackoverflow.com/questions/33831978/unknown-method-process-openstdin#comment126485133_33832075
appears we do not need to resume the stream unless using "old" streams
mode (from back in NodeJS 0.10), and can just use process.stdin instead
of openStdin which was [as done in Node 0.3.3 back in
2011](https://github.com/nodejs/node/blob/43e4efdf210adb2cc3ba26518fd4588f9e0152ff/doc/changelogs/CHANGELOG_ARCHIVE.md#20110102-version-033-unstable).
CheckPolicy's `--stdin` flag is the older user of this code, and was
manually tested to work. As far as I can tell nothing uses this feature.1 parent aa02b0b commit b96c3f0
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
381 | | - | |
| 382 | + | |
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
386 | | - | |
| 387 | + | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| |||
0 commit comments