Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 73272a250e426109de3eccf3c45cb0a95245c0db..43d0ab94eb68dbccb07093c471252df58410b657 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -1071,7 +1071,7 @@ static MaybeObject* ThrowReferenceError(String* name) { |
// can't use either LoadIC or KeyedLoadIC constructors. |
IC ic(IC::NO_EXTRA_FRAME, Isolate::Current()); |
ASSERT(ic.target()->is_load_stub() || ic.target()->is_keyed_load_stub()); |
- if (!ic.SlowIsContextual()) return HEAP->undefined_value(); |
+ if (!ic.SlowIsUndeclaredGlobal()) return HEAP->undefined_value(); |
// Throw a reference error. |
HandleScope scope; |