Commit 072b5500 authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[api] Ignore negative values for script ablation flags

Bug: chromium:1193459
Change-Id: Ia4a79a1f75bb82c459b8b0de35d95c5f25098f1c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2843355Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74090}
parent ec8b54af
......@@ -1925,10 +1925,10 @@ MaybeLocal<Value> Script::Run(Local<Context> context) {
// TODO(crbug.com/1193459): remove once ablation study is completed
base::ElapsedTimer timer;
base::TimeDelta delta;
if (i::FLAG_script_delay) {
if (i::FLAG_script_delay > 0) {
delta = v8::base::TimeDelta::FromMillisecondsD(i::FLAG_script_delay);
}
if (i::FLAG_script_delay_once && !isolate->did_run_script_delay()) {
if (i::FLAG_script_delay_once > 0 && !isolate->did_run_script_delay()) {
delta = v8::base::TimeDelta::FromMillisecondsD(i::FLAG_script_delay_once);
isolate->set_did_run_script_delay(true);
}
......
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