[cleanup] Fix -Wshadow warnings in samples/shell
Bug: v8:12244 Change-Id: I463eceb5b90f4b5b0efddcad7b1734e14d36944d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3183526 Reviewed-by: Adam Klein <adamk@chromium.org> Commit-Queue: Zhi An Ng <zhin@chromium.org> Cr-Commit-Position: refs/heads/main@{#77066}
This commit is contained in:
parent
4c8cc64ee7
commit
c7978c6991
@ -381,8 +381,8 @@ void ReportException(v8::Isolate* isolate, v8::TryCatch* try_catch) {
|
||||
stack_trace_string->IsString() &&
|
||||
stack_trace_string.As<v8::String>()->Length() > 0) {
|
||||
v8::String::Utf8Value stack_trace(isolate, stack_trace_string);
|
||||
const char* stack_trace_string = ToCString(stack_trace);
|
||||
fprintf(stderr, "%s\n", stack_trace_string);
|
||||
const char* err = ToCString(stack_trace);
|
||||
fprintf(stderr, "%s\n", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user