Index: src/ic/ic.h |
diff --git a/src/ic/ic.h b/src/ic/ic.h |
index 5859d637cfc3e53c443c22d2a675d9ceff2340f1..f340560f6b0b5c0787f496dab19ba45d867c6ae8 100644 |
--- a/src/ic/ic.h |
+++ b/src/ic/ic.h |
@@ -317,7 +317,7 @@ class LoadIC : public IC { |
} |
bool ShouldThrowReferenceError(Handle<Object> receiver) { |
- return receiver->IsGlobalObject() && typeof_mode() == NOT_INSIDE_TYPEOF; |
+ return receiver->IsJSGlobalObject() && typeof_mode() == NOT_INSIDE_TYPEOF; |
} |
// Code generator routines. |