Index: src/flag-definitions.h |
diff --git a/src/flag-definitions.h b/src/flag-definitions.h |
index 4de0d1294e06464ad3956c06e6085fdadd5e902d..1d9b25dc3345312805dff5159ce821d7c5ae3fee 100644 |
--- a/src/flag-definitions.h |
+++ b/src/flag-definitions.h |
@@ -871,6 +871,10 @@ DEFINE_BOOL(stack_trace_on_illegal, false, |
"print stack trace when an illegal exception is thrown") |
DEFINE_BOOL(abort_on_uncaught_exception, false, |
"abort program (dump core) when an uncaught exception is thrown") |
+DEFINE_BOOL(abort_on_stack_overflow, false, |
+ "Abort program when stack overflow (as opposed to throwing " |
+ "RangeError). This is useful for fuzzing where the spec behaviour " |
+ "would introduce nondeterminism.") |
DEFINE_BOOL(randomize_hashes, true, |
"randomize hashes to avoid predictable hash collisions " |
"(with snapshots this option cannot override the baked-in seed)") |