mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Added more test cases which common js libraries uses .pipe()
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
const execa = require('execa');
|
||||
|
||||
(async () => {
|
||||
const first = execa('node', ['empty.js']);
|
||||
const second = execa('node', ['stdin.js']);
|
||||
|
||||
first.stdout.pipe(second.stdin); // $SPURIOUS:Alert
|
||||
|
||||
const {stdout} = await second;
|
||||
console.log(stdout);
|
||||
})();
|
||||
Reference in New Issue
Block a user