fix: remove unneeded handlescope from JS callbacks (#48344)

fix: remove unneeded handlescope from JS callbacks (#48318)

fix: remove handlescope from JS callbacks
This commit is contained in:
Robo 2025-09-18 08:47:26 +09:00 committed by GitHub
commit 40fb7621a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 10 deletions

View file

@ -3758,7 +3758,6 @@ v8::Local<v8::Value> WebContents::GetOwnerBrowserWindow(
}
v8::Local<v8::Value> WebContents::Session(v8::Isolate* isolate) {
v8::HandleScope handle_scope(isolate);
v8::Local<v8::Object> wrapper;
if (!session_->GetWrapper(isolate).ToLocal(&wrapper)) {
return v8::Null(isolate);