blob: 38556e6e644a3dafdebce2889624c402f2645a66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict';
const common = require('../common');
const fs = require('fs');
{
const s = fs.createReadStream(__filename);
s.close(common.mustCall());
s.close(common.mustCall());
}
{
const s = fs.createReadStream(__filename);
// this is a private API, but it is worth testing. close calls this
s.destroy(null, common.mustCall());
s.destroy(null, common.mustCall());
}
|