| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
In two places, we call `Isolate::GetCurrent()` even though that is technically invalid usage of the function. Now that V8 exposes `Isolate::TryGetCurrent()`, we can do this in a proper way.
|
We should be able to revert 1fc4d43 after this commit. I can open a pull request after this one has landed, or if you like you can include the revert in this pr. |
Sorry, something went wrong.
This reverts commit 1fc4d43.
There was a problem hiding this comment.
Still LGTM
Sorry, something went wrong.
Sorry, something went wrong.
| // Tells whether the per-process V8::Initialize() is called and | ||
| // if it is safe to call v8::Isolate::GetCurrent(). | ||
| // if it is safe to call v8::Isolate::TryGetCurrent(). | ||
| extern bool v8_initialized; |
There was a problem hiding this comment.
Do we still need this as it claiming that it tells "if it is safe to call v8::Isolate::GetCurrent"?
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah … I don’t know why, but v8::Isolate::TryGetCurrent() is not something you can call without V8 being initialized first.
Sorry, something went wrong.
In two places, we call `Isolate::GetCurrent()` even though that is technically invalid usage of the function. Now that V8 exposes `Isolate::TryGetCurrent()`, we can do this in a proper way. PR-URL: #39954 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
In two places, we call `Isolate::GetCurrent()` even though that is technically invalid usage of the function. Now that V8 exposes `Isolate::TryGetCurrent()`, we can do this in a proper way. PR-URL: #39954 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
| Back | FazBrowse Home | New Git URL |
In two places, we call Isolate::GetCurrent() even though that is
technically invalid usage of the function.
Now that V8 exposes Isolate::TryGetCurrent(), we can do this
in a proper way.