1'use strict';
2
3const common = require('../common');
4const { promises: fs } = require('fs');
5
6async function doOpen() {
7  const fh = await fs.open(__filename);
8  fh.on('close', common.mustCall());
9  await fh[Symbol.asyncDispose]();
10}
11
12doOpen().then(common.mustCall());
13