Don't access context during OOM reporting if it's not available.

BUG=chromium:612076
LOG=N

Review-Url: https://codereview.chromium.org/2005763002
Cr-Commit-Position: refs/heads/master@{#36459}
This commit is contained in:
ishell 2016-05-23 23:58:27 -07:00 committed by Commit bot
parent 94ad3b1826
commit 6b9c915794

View File

@ -529,7 +529,7 @@ void StringStream::PrintPrototype(JSFunction* fun, Object* receiver) {
Isolate* isolate = fun->GetIsolate();
if (receiver->IsNull() || receiver->IsUndefined() || receiver->IsJSProxy()) {
print_name = true;
} else {
} else if (isolate->context() != nullptr) {
if (!receiver->IsJSObject()) {
receiver = receiver->GetRootMap(isolate)->prototype();
}