| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 63d92b0050c097cf9420c521a8f6485300bdd79a..72e9c309b933397ade432feea2a35df4613c3767 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -4837,13 +4837,14 @@ void HandleScopeImplementer::FreeThreadResources() {
|
|
|
|
|
| char* HandleScopeImplementer::ArchiveThread(char* storage) {
|
| + Isolate* isolate = Isolate::Current();
|
| v8::ImplementationUtilities::HandleScopeData* current =
|
| - Isolate::Current()->handle_scope_data();
|
| + isolate->handle_scope_data();
|
| handle_scope_data_ = *current;
|
| memcpy(storage, this, sizeof(*this));
|
|
|
| ResetAfterArchive();
|
| - current->Initialize();
|
| + current->Initialize(isolate);
|
|
|
| return storage + ArchiveSpacePerThread();
|
| }
|
|
|