refactor: remove more uses of v8::Isolate::GetCurrent() (#28369)
This commit is contained in:
parent
ff96fabe5e
commit
ae2059eaa1
9 changed files with 43 additions and 44 deletions
|
@ -312,7 +312,8 @@ void SimpleURLLoaderWrapper::Pin() {
|
|||
}
|
||||
|
||||
void SimpleURLLoaderWrapper::PinBodyGetter(v8::Local<v8::Value> body_getter) {
|
||||
pinned_chunk_pipe_getter_.Reset(v8::Isolate::GetCurrent(), body_getter);
|
||||
pinned_chunk_pipe_getter_.Reset(JavascriptEnvironment::GetIsolate(),
|
||||
body_getter);
|
||||
}
|
||||
|
||||
SimpleURLLoaderWrapper::~SimpleURLLoaderWrapper() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue