Home
last modified time | relevance | path

Searched refs:closeSync (Results 1 - 25 of 49) sorted by relevance

12

/third_party/node/test/wasi/
H A Dtest-wasi-stdio.js5 const { closeSync, openSync, readFileSync, writeFileSync } = require('fs');
28 closeSync(stdin);
29 closeSync(stdout);
30 closeSync(stderr);
/third_party/node/test/parallel/
H A Dtest-fs-opendir.js18 fs.closeSync(fs.openSync(path.join(testDir, filename), 'w'));
63 dir.closeSync();
66 assert.throws(() => dir.closeSync(), dirclosedError);
234 // Check that readSync() and closeSync() during read() throw exceptions
239 assert.throws(() => dir.closeSync(), dirconcurrentError);
243 dir.closeSync();
261 dir.closeSync();
279 dir.closeSync();
288 dir.closeSync();
H A Dtest-fs-chmod.js38 fs._closeSync = fs.closeSync;
40 fs.closeSync = closeSync;
59 function closeSync() { function
81 fs.closeSync(fs.openSync(file1, 'w'));
H A Dtest-fs-readfile-fd.js50 fs.closeSync(fd);
73 fs.closeSync(fd);
90 fs.closeSync(fd);
H A Dtest-fs-close-errors.js3 // This tests that the errors thrown from fs.close and fs.closeSync
18 assert.throws(() => fs.closeSync(input), errObj);
34 fs.closeSync(fd);
H A Dtest-fs-write-sync-optional-params.js29 if (fd != null) fs.closeSync(fd);
41 if (fd != null) fs.closeSync(fd);
48 if (fd != null) fs.closeSync(fd);
H A Dtest-fs-truncate.js71 fs.closeSync(fd);
149 process.on('beforeExit', () => fs.closeSync(fd));
166 process.on('beforeExit', () => fs.closeSync(fd));
176 process.on('beforeExit', () => fs.closeSync(fd));
230 process.on('beforeExit', () => fs.closeSync(fd));
H A Dtest-fs-open-mode-mask.js26 fs.closeSync(fd);
34 fs.closeSync(fd);
H A Dtest-fs-read-optional-params.js19 fs.closeSync(paramsFilehandle);
27 fs.closeSync(optionsFilehandle);
H A Dtest-fs-sync-fd-leak.js34 fs.closeSync = function(fd) {
H A Dtest-fs-write-stream-change-open.js49 fs.closeSync(fd);
H A Dtest-fs-write-reuse-callback.js30 fs.closeSync(fd);
H A Dtest-fs-readSync-optional-params.js19 if (fd != null) fs.closeSync(fd);
H A Dtest-fs-sir-writes-alot.js48 fs.closeSync(fd);
H A Dtest-fs-write-stream.js41 fs.closeSync(fd);
/third_party/node/test/pummel/
H A Dtest-watch-file.js32 fs.closeSync(fs.openSync(f, 'w'));
53 fs.closeSync(fd);
/third_party/node/lib/internal/fs/
H A Dsync_write_stream.js10 const { closeSync, writeSync } = require('fs');
40 closeSync(this.fd);
/third_party/node/lib/internal/modules/esm/
H A Dformats.js9 const { closeSync, openSync, readSync } = require('fs');
73 if (fd !== undefined) { closeSync(fd); }
/third_party/protobuf/js/experimental/runtime/kernel/conformance/
H A Dconformance_testee_runner_node.js16 fs.closeSync(fd);
29 fs.closeSync(fd);
/third_party/node/deps/npm/node_modules/graceful-fs/
H A Dpolyfills.js198 fs.closeSync(fd)
201 fs.closeSync(fd)
234 fs.closeSync(fd)
237 fs.closeSync(fd)
H A Dgraceful-fs.js48 // Patch fs.close/closeSync to shared queue version, because we need
71 fs.closeSync = (function (fs$closeSync) {
72 function closeSync (fd) {
74 fs$closeSync.apply(fs, arguments)
78 Object.defineProperty(closeSync, previousSymbol, {
79 value: fs$closeSync
81 return closeSync
82 })(fs.closeSync)
/third_party/node/benchmark/fs/
H A Dbench-statSync.js25 fs.closeSync(arg);
H A Dbench-stat.js24 fs.closeSync(arg);
/third_party/node/deps/npm/node_modules/cross-spawn/lib/util/
H A DreadShebang.js16 fs.closeSync(fd);
/third_party/node/deps/npm/node_modules/write-file-atomic/lib/
H A Dindex.js229 fs.closeSync(fd)
257 fs.closeSync(fd)

Completed in 5 milliseconds

12