[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(