MCPcopy Create free account
hub / github.com/nodejs/node / promise

Function promise

test/parallel/test-fs-open.js:51–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49fs.open(__filename, 'r', null, common.mustSucceed());
50
51async function promise() {
52 await (await fs.promises.open(__filename)).close();
53 await (await fs.promises.open(__filename, 'r')).close();
54}
55
56promise().then(common.mustCall());
57

Callers 3

test-fs-open.jsFile · 0.85
promise_test_parallelFunction · 0.85

Calls 2

closeMethod · 0.65
openMethod · 0.65

Tested by

no test coverage detected