Commit 6b9c9157 authored by ishell's avatar ishell Committed by Commit bot

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}
parent 94ad3b18
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment