DescriptionV8 API: Add a missing NULL check into Isolate::GetCurrentContext().
There is a missing NULL check for: "internal_isolate->context() != NULL".
Right now before calling this method one should call v8::Context::InContext()
first to perform this check, otherwise we may crash. But this static method
will do this check on the current isolate, which may not be the same as a given one.
BUG=249655
R=yurys@chromium.org,mvstanton@chromium.org
Patch Set 1 #Patch Set 2 : Added a test that crashes without the patch #Patch Set 3 : #
MessagesTotal messages: 7
|