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:
parent
94ad3b1826
commit
6b9c915794
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user