node/test/message
Yang Guo f84a5e19b7 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-05-02 12:46:15 -05: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 test: s/assert.equal/assert.strictEqual/ 2017-01-30 12:08:40 -05:00
error_exit.out test: s/assert.equal/assert.strictEqual/ 2017-01-30 12:08:40 -05:00
eval_messages.js test: use eslint to fix var->const/let 2017-01-30 12:08:39 -05:00
eval_messages.out lib: fix event race condition with -e 2017-03-28 19:12:49 -04:00
hello_world.js
hello_world.out
max_tick_depth.js test: use eslint to fix var->const/let 2017-01-30 12:08:39 -05:00
max_tick_depth.out
message.status
nexttick_throw.js test: limit lint rule disabling in message test 2017-03-13 11:19:23 -04:00
nexttick_throw.out
stack_overflow.js test: use JSON.stringify to trigger stack overflow 2017-05-02 12:46:15 -05:00
stack_overflow.out test: use JSON.stringify to trigger stack overflow 2017-05-02 12:46:15 -05:00
stdin_messages.js test: use eslint to fix var->const/let 2017-01-30 12:08:39 -05:00
stdin_messages.out lib: fix event race condition with -e 2017-03-28 19:12:49 -04:00
testcfg.py
throw_custom_error.js tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
throw_custom_error.out tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
throw_in_line_with_tabs.js tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
throw_in_line_with_tabs.out tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
throw_non_error.js tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
throw_non_error.out tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
throw_null.js tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
throw_null.out tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
throw_undefined.js tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
throw_undefined.out tools: enable no-throw-literal ESLint rule 2017-02-14 11:52:17 -05:00
timeout_throw.js test: provide duration/interval to timers 2017-01-27 08:11:51 -05:00
timeout_throw.out
undefined_reference_in_new_context.js test: use const for all require() calls 2017-01-30 12:08:31 -05:00
undefined_reference_in_new_context.out vm: refactor vm module 2017-02-22 20:54:31 +01:00
unhandled_promise_trace_warnings.js
unhandled_promise_trace_warnings.out test: fix over-dependence on native promise impl 2017-02-22 21:05:08 +01:00
vm_caught_custom_runtime_error.js
vm_caught_custom_runtime_error.out
vm_display_runtime_error.js test: use const for all require() calls 2017-01-30 12:08:31 -05:00
vm_display_runtime_error.out vm: refactor vm module 2017-02-22 20:54:31 +01:00
vm_display_syntax_error.js test: use const for all require() calls 2017-01-30 12:08:31 -05:00
vm_display_syntax_error.out vm: refactor vm module 2017-02-22 20:54:31 +01:00
vm_dont_display_runtime_error.js test: use const for all require() calls 2017-01-30 12:08:31 -05:00
vm_dont_display_runtime_error.out vm: refactor vm module 2017-02-22 20:54:31 +01:00
vm_dont_display_syntax_error.js test: use const for all require() calls 2017-01-30 12:08:31 -05:00
vm_dont_display_syntax_error.out vm: refactor vm module 2017-02-22 20:54:31 +01:00