Commit bbbf21c2 authored by ishell's avatar ishell Committed by Commit bot

Don't crash when trying to print a call stack of an OOM.

Receiver is the hole when we construct a builtin object.

BUG=chromium:611684

Review-Url: https://codereview.chromium.org/2083163003
Cr-Commit-Position: refs/heads/master@{#37182}
parent 1b4e0130
......@@ -528,7 +528,7 @@ void StringStream::PrintPrototype(JSFunction* fun, Object* receiver) {
bool print_name = false;
Isolate* isolate = fun->GetIsolate();
if (receiver->IsNull(isolate) || receiver->IsUndefined(isolate) ||
receiver->IsJSProxy()) {
receiver->IsTheHole(isolate) || receiver->IsJSProxy()) {
print_name = true;
} else if (isolate->context() != nullptr) {
if (!receiver->IsJSObject()) {
......
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