node/lib
Joyee Cheung f7049a2006
fs: refactor stats array to be more generic
- Pass kFsStatsFieldsLength between JS and C++ instead of using the
  magic number 14
- Pass the global stats array to the completion callback of
  asynchronous FSReqWrap similar to how the stats arrays are passed
  to the FSReqPromise resolvers
- Abstract the stats converter and take an offset to compute the
  old stats in fs.watchFile
- Use templates in node::FillStatsArray and FSReqPromise in preparation
  for BigInt intergration
- Put the global stat array filler in node_internals.h because it is
  shared by node_file.cc and node_stat_watcher.cc

PR-URL: https://github.com/nodejs/node/pull/19714
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-04-04 15:25:59 +08:00
..
fs fs: refactor stats array to be more generic 2018-04-04 15:25:59 +08:00
internal fs: refactor stats array to be more generic 2018-04-04 15:25:59 +08:00
_http_agent.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
_http_client.js http: fix request when setHost is true 2018-04-03 15:43:40 -07:00
_http_common.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
_http_incoming.js http: do not replace .read() in IncomingMessage 2018-02-27 12:26:40 +01:00
_http_outgoing.js lib: improve error handling 2018-03-25 03:01:45 +02:00
_http_server.js lib: port remaining errors to new system 2018-03-07 14:54:38 +01:00
_stream_duplex.js stream: make Duplex inherits from DuplexBase 2018-03-07 16:05:17 +01:00
_stream_passthrough.js
_stream_readable.js stream: fix backpressure when multiple sync 2018-03-30 12:13:59 +02:00
_stream_transform.js stream: make virtual methods errors consistent 2018-03-12 14:24:34 +01:00
_stream_wrap.js lib: move _stream_wrap into internals 2017-10-19 18:06:27 +02:00
_stream_writable.js stream: give error message if write() cb called twice 2018-03-27 01:38:05 +01:00
_tls_common.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
_tls_wrap.js tls: drop NPN (next protocol negotiation) support 2018-03-27 16:22:37 +02:00
.eslintrc.yaml tools,lib: forbid native Error constructors 2018-03-21 20:15:33 +01:00
assert.js assert: ensure .rejects() disallows sync throws 2018-04-03 22:41:01 -04:00
async_hooks.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
buffer.js buffer: remove "new" from deprecation message 2018-04-01 21:08:54 -07:00
child_process.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
cluster.js
console.js console: add table method 2018-03-30 19:41:41 -05:00
constants.js
crypto.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
dgram.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
dns.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
domain.js tools,lib: forbid native Error constructors 2018-03-21 20:15:33 +01:00
events.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
fs.js fs: refactor stats array to be more generic 2018-04-04 15:25:59 +08:00
http2.js
http.js http: support server options on createServer 2018-03-25 11:51:32 +02:00
https.js tls: drop NPN (next protocol negotiation) support 2018-03-27 16:22:37 +02:00
inspector.js inspector: migrate errors from C++ to JS 2018-03-22 08:24:31 +01:00
module.js lib: add back lib/module.js redirection 2018-03-15 20:50:35 +08:00
net.js net: track bytesWritten in C++ land 2018-03-30 14:20:40 +02:00
os.js lib,src: audit process.env in lib/ for setuid binary 2018-02-16 17:42:21 +01:00
path.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
perf_hooks.js perf_hooks: simplify perf_hooks 2018-04-03 13:57:41 -07:00
process.js
punycode.js
querystring.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
readline.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
repl.js lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
stream.js zlib,stream: use “official” util.types typechecks 2018-03-28 16:21:56 -07:00
string_decoder.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
sys.js
timers.js lib: fix a typo in lib/timers "read through" 2018-03-28 20:10:19 -07:00
tls.js tls: runtime-deprecate tls.convertNPNProtocols() 2018-03-27 16:22:37 +02:00
tty.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
url.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
util.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
v8.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
vm.js vm: move options checks from C++ to JS 2018-04-03 17:59:22 +02:00
zlib.js zlib,stream: use “official” util.types typechecks 2018-03-28 16:21:56 -07:00