node/lib
Myles Borins 21b0a27af8
Revert "fs: make callback mandatory to all async functions"
This reverts commit 9359de9dd2.

Original Commit Message:

    The "fs" module has two functions called `maybeCallback` and
    `makeCallback`, as of now.

    The `maybeCallback` creates a default function to report errors, if the
    parameter passed is not a function object. Basically, if the callback
    is omitted in some cases, this function is used to create a default
    callback function.

    The `makeCallback`, OTOH, creates a default function only if the
    parameter passed is `undefined`, and if it is not a function object it
    will throw an `Error`.

    This patch removes the `maybeCallback` function and makes the callback
    function argument mandatory for all the async functions.

    PR-URL: https://github.com/nodejs/node/pull/7168
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/7846
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-08-05 00:13:29 +02:00
..
internal util: support classes in util.deprecate() 2016-08-04 11:44:40 -04:00
.eslintrc tools: add buffer-constructor eslint rule 2016-03-18 17:05:18 -07:00
_debug_agent.js debugger: make listen address configurable 2016-06-30 13:41:51 +02:00
_debugger.js debugger: remove obsolete setTimeout 2016-06-07 13:32:05 -07:00
_http_agent.js tls,https: respect address family when connecting 2016-05-28 22:49:36 +02:00
_http_client.js http: wait for both prefinish/end to keepalive 2016-06-06 13:34:11 -04:00
_http_common.js http: optimize checkInvalidHeaderChar() 2016-06-14 15:13:00 -04:00
_http_incoming.js http: fix no dumping after `maybeReadMore` 2016-06-15 12:50:19 -04:00
_http_outgoing.js http: replace finish() callback with arrow function 2016-06-27 08:26:44 -07:00
_http_server.js tools: lint for object literal spacing 2016-05-08 22:45:20 -07:00
_linklist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js lib,benchmark,test: implement consistent braces 2016-07-12 10:33:29 -07:00
_stream_transform.js stream: 'data' argument on callback of Transform._flush() 2016-06-09 11:06:01 +02:00
_stream_wrap.js stream_wrap: error if stream has StringDecoder 2015-12-06 21:55:25 -05:00
_stream_writable.js stream: improve unimplemented _write() error 2016-07-21 11:24:26 -04:00
_tls_common.js src: refactor require('constants') 2016-05-17 11:05:18 -07:00
_tls_legacy.js lib: replace legacy uses of __defineGetter__ 2016-05-16 17:01:34 -07:00
_tls_wrap.js buffer: introduce latin1 encoding term 2016-06-07 13:51:14 -06:00
assert.js assert: remove unneeded arguments special handling 2016-06-27 16:58:12 -07:00
buffer.js buffer: speed up swap16/32, add swap64 2016-06-27 14:38:37 -06:00
child_process.js child_process: support stdio option in fork() 2016-07-22 11:57:01 -04:00
cluster.js cluster: support stdio option for workers 2016-08-01 15:08:42 -04:00
console.js console: timeEnd() with no label emits warning 2016-04-25 08:28:23 -07:00
constants.js src: refactor require('constants') 2016-05-17 11:05:18 -07:00
crypto.js crypto,tls: perf improvements for crypto and tls getCiphers 2016-06-21 10:03:08 -07:00
dgram.js dgram: generalized send queue to handle close 2016-07-13 17:49:04 +02:00
dns.js dns: Use object without protoype for map 2016-03-22 11:13:03 -07:00
domain.js domain: add message for dispose deprecation 2016-06-07 00:27:42 -04:00
events.js events: pass the original listener added by once 2016-04-29 12:10:50 -07:00
fs.js Revert "fs: make callback mandatory to all async functions" 2016-08-05 00:13:29 +02:00
http.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
https.js crypto: fail early when loading crypto without openssl 2016-03-23 10:34:40 -07:00
module.js lib,benchmark,test: implement consistent braces 2016-07-12 10:33:29 -07:00
net.js lib,benchmark,test: implement consistent braces 2016-07-12 10:33:29 -07:00
os.js os: deprecate `tmpDir()` in favour of `tmpdir()` 2016-06-30 14:52:13 +02:00
path.js path: fix basename() regressions 2016-05-18 02:12:28 -04:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js punycode: update to v2.0.0 2016-06-17 17:03:49 +02:00
querystring.js benchmark,test,lib: remove extra spaces 2016-05-11 23:18:16 -07:00
readline.js readline: show completions only after 2nd TAB 2016-08-04 23:32:38 +02:00
repl.js repl: deprecate unused function convertToContext 2016-08-04 12:59:50 -07:00
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
string_decoder.js string_decoder: fix bad utf8 character handling 2016-06-23 23:18:10 -04:00
sys.js util: introduce `printDeprecationMessage` function 2015-06-04 10:59:43 +03:00
timers.js timers: fix cleanup of nested same-timeout timers 2016-07-29 09:48:45 -07:00
tls.js tls: avoid calling Buffer.byteLength multiple times 2016-06-21 10:53:25 -07:00
tty.js tty: use blocking mode on OS X 2016-06-01 18:57:45 -04:00
url.js net: use icu's punycode implementation 2016-06-29 17:10:53 -07:00
util.js util: fix formatting of objects with SIMD enabled 2016-08-02 15:00:59 +02:00
v8.js v8,src: expose statistics about heap spaces 2016-01-18 11:44:00 -05:00
vm.js vm: add ability to break on sigint/ctrl+c 2016-06-18 20:44:16 +02:00
zlib.js zlib: move constants into zlib.constants 2016-06-11 17:24:35 -07:00