| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 98f56d1 commit 842f936
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -147,7 +147,7 @@ unsigned int reverted_cve = 0; | |||
| 147 | 147 | ||
| 148 | 148 | // util.h | |
| 149 | 149 | // Tells whether the per-process V8::Initialize() is called and | |
| 150 | - // if it is safe to call v8::Isolate::GetCurrent(). | ||
| 150 | + // if it is safe to call v8::Isolate::TryGetCurrent(). | ||
| 151 | 151 | bool v8_initialized = false; | |
| 152 | 152 | ||
| 153 | 153 | // node_internals.h | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -430,7 +430,7 @@ void OnFatalError(const char* location, const char* message) { | |||
| 430 | 430 | FPrintF(stderr, "FATAL ERROR: %s\n", message); | |
| 431 | 431 | } | |
| 432 | 432 | ||
| 433 | - Isolate* isolate = Isolate::GetCurrent(); | ||
| 433 | + Isolate* isolate = Isolate::TryGetCurrent(); | ||
| 434 | 434 | Environment* env = nullptr; | |
| 435 | 435 | if (isolate != nullptr) { | |
| 436 | 436 | env = Environment::GetCurrent(isolate); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -128,7 +128,7 @@ BufferValue::BufferValue(Isolate* isolate, Local<Value> value) { | |||
| 128 | 128 | ||
| 129 | 129 | void LowMemoryNotification() { | |
| 130 | 130 | if (per_process::v8_initialized) { | |
| 131 | - auto isolate = Isolate::GetCurrent(); | ||
| 131 | + auto isolate = Isolate::TryGetCurrent(); | ||
| 132 | 132 | if (isolate != nullptr) { | |
| 133 | 133 | isolate->LowMemoryNotification(); | |
| 134 | 134 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,7 +91,7 @@ inline T MultiplyWithOverflowCheck(T a, T b); | |||
| 91 | 91 | ||
| 92 | 92 | namespace per_process { | |
| 93 | 93 | // Tells whether the per-process V8::Initialize() is called and | |
| 94 | - // if it is safe to call v8::Isolate::GetCurrent(). | ||
| 94 | + // if it is safe to call v8::Isolate::TryGetCurrent(). | ||
| 95 | 95 | extern bool v8_initialized; | |
| 96 | 96 | } // namespace per_process | |
| 97 | 97 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments