Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index 929b022ed5faa5b14ff5b8d536a60e21d612d101..5a6c5da3dd54a51579be2daab08565f8391b577f 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -63,7 +63,10 @@ Handle<JSReceiver> LookupIterator::GetRoot(Handle<Object> receiver, |
Isolate* isolate) { |
if (receiver->IsJSReceiver()) return Handle<JSReceiver>::cast(receiver); |
auto root = handle(receiver->GetRootMap(isolate)->prototype(), isolate); |
- CHECK(!root->IsNull()); |
+ if (root->IsNull()) { |
+ unsigned int magic = 0xbbbbbbbb; |
+ isolate->PushStackTraceAndDie(magic, *receiver, NULL, magic); |
+ } |
return Handle<JSReceiver>::cast(root); |
} |