node/test/message
Rich Trott 7f2b5d305d test: remove common.noop
This change removes `common.noop` from the Node.js internal testing
common module.

Over the last few weeks, I've grown to dislike the `common.noop`
abstraction.

First, new (and experienced) contributors are unaware of it and so it
results in a large number of low-value nits on PRs. It also increases
the number of things newcomers and infrequent contributors have to be
aware of to be effective on the project.

Second, it is confusing. Is it a singleton/property or a getter? Which
should be expected? This can lead to subtle and hard-to-find bugs. (To
my knowledge, none have landed on master. But I also think it's only a
matter of time.)

Third, the abstraction is low-value in my opinion. What does it really
get us? A case could me made that it is without value at all.

Lastly, and this is minor, but the abstraction is wordier than not using
the abstraction. `common.noop` doesn't save anything over `() => {}`.

So, I propose removing it.

PR-URL: https://github.com/nodejs/node/pull/12822
Backport-PR-URL: https://github.com/nodejs/node/pull/14174
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-07-19 15:02:25 -04:00
..
2100bytes.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
2100bytes.out
console_low_stack_space.js
console_low_stack_space.out
core_line_numbers.js
core_line_numbers.out lib: remove _debugger.js 2017-04-21 10:35:49 +02:00
error_exit.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
error_exit.out errors: AssertionError moved to internal/error 2017-05-28 07:00:29 -07:00
eval_messages.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
eval_messages.out lib: remove _debugger.js 2017-04-21 10:35:49 +02:00
hello_world.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
hello_world.out
max_tick_depth.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
max_tick_depth.out
message.status
nexttick_throw.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
nexttick_throw.out lib: remove _debugger.js 2017-04-21 10:35:49 +02:00
stack_overflow.js test: use JSON.stringify to trigger stack overflow 2017-04-21 11:46:19 +02:00
stack_overflow.out test: use JSON.stringify to trigger stack overflow 2017-04-21 11:46:19 +02:00
stdin_messages.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
stdin_messages.out lib: fix event race condition with -e 2017-03-24 09:19:09 -07:00
testcfg.py
throw_custom_error.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
throw_custom_error.out meta: restore original copyright header 2017-03-10 11:23:48 -08:00
throw_in_line_with_tabs.js tools: update ESLint to v4.0.0 2017-06-21 22:43:32 +02:00
throw_in_line_with_tabs.out meta: restore original copyright header 2017-03-10 11:23:48 -08:00
throw_non_error.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
throw_non_error.out meta: restore original copyright header 2017-03-10 11:23:48 -08:00
throw_null.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
throw_null.out meta: restore original copyright header 2017-03-10 11:23:48 -08:00
throw_undefined.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
throw_undefined.out meta: restore original copyright header 2017-03-10 11:23:48 -08:00
timeout_throw.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
timeout_throw.out
undefined_reference_in_new_context.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
undefined_reference_in_new_context.out
unhandled_promise_trace_warnings.js test: remove common.noop 2017-07-19 15:02:25 -04:00
unhandled_promise_trace_warnings.out lib: implement async_hooks API in core 2017-05-10 22:22:29 +02:00
vm_caught_custom_runtime_error.js
vm_caught_custom_runtime_error.out
vm_display_runtime_error.js vm: fix displayErrors in runIn.. functions 2017-05-28 07:00:36 -07:00
vm_display_runtime_error.out vm: fix displayErrors in runIn.. functions 2017-05-28 07:00:36 -07:00
vm_display_syntax_error.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
vm_display_syntax_error.out lib: remove _debugger.js 2017-04-21 10:35:49 +02:00
vm_dont_display_runtime_error.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
vm_dont_display_runtime_error.out lib: remove _debugger.js 2017-04-21 10:35:49 +02:00
vm_dont_display_syntax_error.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
vm_dont_display_syntax_error.out lib: remove _debugger.js 2017-04-21 10:35:49 +02:00