mirror of https://github.com/nodejs/node.git
17fbdc18b8
Before this commit the EventEmitter methods were anonymous functions. V8 tries to infer names for anonymous functions based on the execution context but it frequently gets it wrong and when that happens, the stack trace is usually confusing and unhelpful. This commit names all methods so V8 can fall back to the method.name property. The above gotcha applies to all anonymous functions but is exacerbated for EventEmitter methods because those are invoked with a plenitude of different receivers. Signed-off-by: Trevor Norris <trev.norris@gmail.com> |
||
---|---|---|
.. | ||
2100bytes.js | ||
2100bytes.out | ||
error_exit.js | ||
error_exit.out | ||
eval_messages.js | ||
eval_messages.out | ||
hello_world.js | ||
hello_world.out | ||
max_tick_depth.js | ||
max_tick_depth.out | ||
max_tick_depth_trace.js | ||
max_tick_depth_trace.out | ||
nexttick_throw.js | ||
nexttick_throw.out | ||
stack_overflow.js | ||
stack_overflow.out | ||
stdin_messages.js | ||
stdin_messages.out | ||
testcfg.py | ||
throw_custom_error.js | ||
throw_custom_error.out | ||
throw_in_line_with_tabs.js | ||
throw_in_line_with_tabs.out | ||
throw_non_error.js | ||
throw_non_error.out | ||
timeout_throw.js | ||
timeout_throw.out | ||
undefined_reference_in_new_context.js | ||
undefined_reference_in_new_context.out |