0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-22 15:47:56 +01:00
nodejs/test/message
Yang Guo b73b903dc4 test: use JSON.stringify to trigger stack overflow
V8's interpreter performs stack checks both at the call site and at the
function entry. A recursive function could therefore trigger stack
overflow at two different source locations. Instead of recursion, call
JSON.stringify on a deeply nested array.

PR-URL: https://github.com/nodejs/node/pull/12481
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-04-21 11:46:19 +02:00
..
2100bytes.js
2100bytes.out
console_low_stack_space.js
console_low_stack_space.out
core_line_numbers.js
core_line_numbers.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
message.status
nexttick_throw.js
nexttick_throw.out
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
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
throw_null.js
throw_null.out
throw_undefined.js
throw_undefined.out
timeout_throw.js
timeout_throw.out
undefined_reference_in_new_context.js
undefined_reference_in_new_context.out
unhandled_promise_trace_warnings.js
unhandled_promise_trace_warnings.out
vm_caught_custom_runtime_error.js
vm_caught_custom_runtime_error.out
vm_display_runtime_error.js
vm_display_runtime_error.out
vm_display_syntax_error.js
vm_display_syntax_error.out
vm_dont_display_runtime_error.js
vm_dont_display_runtime_error.out
vm_dont_display_syntax_error.js
vm_dont_display_syntax_error.out