Commit 2974d1e7 authored by Camillo Bruni's avatar Camillo Bruni Committed by V8 LUCI CQ

[isolate] Set the stack trace limit to 0 for correctness fuzzing

Bug: chromium:1244626
Change-Id: I539a476bc683e3b40d85ee4c7579957bdf4fb5d9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3133145
Auto-Submit: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77005}
parent b01bb10c
......@@ -832,6 +832,7 @@ class StackTraceBuilder {
};
bool GetStackTraceLimit(Isolate* isolate, int* result) {
DCHECK(!FLAG_correctness_fuzzer_suppressions);
Handle<JSObject> error = isolate->error_function();
Handle<String> key = isolate->factory()->stackTraceLimit_string();
......@@ -1131,7 +1132,10 @@ Handle<Object> Isolate::CaptureSimpleStackTrace(Handle<JSReceiver> error_object,
FrameSkipMode mode,
Handle<Object> caller) {
int limit;
if (!GetStackTraceLimit(this, &limit)) return factory()->undefined_value();
if (FLAG_correctness_fuzzer_suppressions ||
!GetStackTraceLimit(this, &limit)) {
return factory()->undefined_value();
}
CaptureStackTraceOptions options;
options.limit = limit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment