commit | 1109e2852c9ef4f23d74e10bf169024cd4e5745c | [log] [tgz] |
---|---|---|
author | Camillo Bruni <[email protected]> | Tue Dec 14 15:53:13 2021 |
committer | Chromium LUCI CQ <[email protected]> | Tue Dec 14 15:53:13 2021 |
tree | 0281976dc37215e21f3803aa221f36b760e7453c | |
parent | 83b9521586a863135254c32451bb74d82efe81d5 [diff] [blame] |
[v8][api] Update users of v8::Object::CreationContext v8::Object::CreationContext is deprecated, replace users with one of the two following alternatives: - MaybeLocal<Context> v8::Object::GetCreationContext() - Local<Context> v8::Object::GetCreationContextChecked() Bug: v8:11165 Change-Id: I1ebfc6948dc0c1d289d31d07fca7d940b2fa9073 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3275976 Reviewed-by: Kentaro Hara <[email protected]> Reviewed-by: Sean Topping <[email protected]> Reviewed-by: Jochen Eisinger <[email protected]> Reviewed-by: Finnur Thorarinsson <[email protected]> Commit-Queue: Camillo Bruni <[email protected]> Cr-Commit-Position: refs/heads/main@{#951508}
diff --git a/content/web_test/renderer/gc_controller.cc b/content/web_test/renderer/gc_controller.cc index 811a85d..a343bbf 100644 --- a/content/web_test/renderer/gc_controller.cc +++ b/content/web_test/renderer/gc_controller.cc
@@ -96,7 +96,7 @@ v8::HandleScope scope(isolate); v8::Local<v8::Function> func = callback.Get(isolate); - v8::Local<v8::Context> context = func->CreationContext(); + v8::Local<v8::Context> context = func->GetCreationContextChecked(); v8::Context::Scope context_scope(context); v8::TryCatch try_catch(isolate); v8::MicrotasksScope microtasks_scope(