0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Robert Nagy ba45367830 fs: do not emit 'finish' before 'open' on write empty file
'finish' could previously be emitted before the file has been
created when ending a write stream without having written any
data.

Refs: https://github.com/expressjs/multer/issues/238

PR-URL: https://github.com/nodejs/node/pull/29930
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2019-10-13 16:22:23 -07:00
..
internal fs: do not emit 'finish' before 'open' on write empty file 2019-10-13 16:22:23 -07:00
_http_agent.js http: add reusedSocket property on client request 2019-10-12 11:55:25 +08:00
_http_client.js http: add reusedSocket property on client request 2019-10-12 11:55:25 +08:00
_http_common.js http: remove legacy parser 2019-09-20 20:18:35 +02:00
_http_incoming.js http: replace superfluous connection property with getter/setter 2019-08-17 06:21:59 -07:00
_http_outgoing.js stream: disallow stream methods on finished stream 2019-08-20 08:47:19 -07:00
_http_server.js src: bring 425 status code name into accordance with RFC 8470 2019-10-10 10:48:13 -07:00
_stream_duplex.js http,stream: add writableEnded 2019-08-17 00:28:06 -07:00
_stream_passthrough.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_stream_readable.js lib: introduce no-mixed-operators eslint rule to lib 2019-10-05 13:59:32 -07:00
_stream_transform.js stream: remove TODO and add a description instead 2019-05-02 23:16:14 +02:00
_stream_wrap.js lib: assign missed deprecation code 2019-03-07 15:48:55 +01:00
_stream_writable.js stream: always invoke callback before emitting error 2019-09-30 10:56:29 -07:00
_tls_common.js tls: add option for private keys for OpenSSL engines 2019-09-27 15:50:56 -07:00
_tls_wrap.js lib: introduce no-mixed-operators eslint rule to lib 2019-10-05 13:59:32 -07:00
.eslintrc.yaml tools: prohibit Error.prepareStackTrace() usage 2019-10-05 20:19:17 -07:00
assert.js assert: fix line number calculation after V8 upgrade 2019-10-07 03:20:07 -04:00
async_hooks.js process: improve queueMicrotask performance 2019-06-10 07:49:40 +02:00
buffer.js buffer: correct indexOf() error message 2019-08-28 15:13:51 -04:00
child_process.js stream: use readableEncoding public api for child_process 2019-07-14 22:27:33 -07:00
cluster.js
console.js
constants.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
crypto.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
dgram.js dgram: use uv_udp_try_send() 2019-10-05 17:48:10 -07:00
dns.js dns: update lookupService() first arg name 2019-08-10 19:06:21 -07:00
domain.js domain: do not import util for a simple type check 2019-10-12 21:59:34 -07:00
events.js events: improve performance of EventEmitter.emit 2019-09-24 09:12:59 +02:00
fs.js fs: make FSWatcher.start private 2019-10-12 19:56:07 -07:00
http2.js
http.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
https.js http, http2: remove default server timeout 2019-05-09 08:54:04 -07:00
inspector.js lib: remove the use of util.isFunction 2019-09-17 18:41:20 -07:00
module.js lib: rework logic of stripping BOM+Shebang from commonjs 2019-05-26 13:04:29 -05:00
net.js net: treat ENOTCONN at shutdown as success 2019-10-12 03:09:22 +02:00
os.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
path.js lib: introduce no-mixed-operators eslint rule to lib 2019-10-05 13:59:32 -07:00
perf_hooks.js perf_hooks: remove non-existent entries from inspect 2019-09-13 13:35:51 -07:00
process.js
punycode.js
querystring.js querystring: improve performance 2019-08-28 03:12:11 -04:00
readline.js lib: introduce no-mixed-operators eslint rule to lib 2019-10-05 13:59:32 -07:00
repl.js lib: stop using prepareStackTrace 2019-10-02 16:17:01 -07:00
stream.js stream: simplify isUint8Array helper 2019-09-12 14:58:25 +02:00
string_decoder.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
sys.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
timers.js timers: set _destroyed even if there are no destroy-hooks 2019-09-22 16:19:26 -07:00
tls.js tls: remove unnecessary set of DEFAULT_MAX_VERSION 2019-06-17 14:39:41 +02:00
trace_events.js perf_hooks,trace_events: use stricter equality 2019-06-16 16:45:15 +08:00
tty.js tty: expose stream API from readline methods 2019-07-18 17:20:45 -04:00
url.js lib: introduce no-mixed-operators eslint rule to lib 2019-10-05 13:59:32 -07:00
util.js lib: introduce no-mixed-operators eslint rule to lib 2019-10-05 13:59:32 -07:00
v8.js src: export v8.GetHeapCodeAndMetadataStatistics() 2019-07-30 11:36:51 -07:00
vm.js vm: refactor SourceTextModule 2019-10-02 15:54:35 -07:00
worker_threads.js worker: add ability to unshift message from MessagePort 2019-05-19 22:01:34 +02:00
zlib.js zlib: remove usage of public util module 2019-07-19 11:06:29 -07:00