Index: src/runtime/runtime-scopes.cc |
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
index 6e0f6fe21370bb3e17a39d0a456246ab01d390ed..51656cdad1c60d386c42d8a9955b3648770cf677 100644 |
--- a/src/runtime/runtime-scopes.cc |
+++ b/src/runtime/runtime-scopes.cc |
@@ -115,7 +115,8 @@ Object* DeclareGlobal( |
RETURN_FAILURE_ON_EXCEPTION( |
isolate, JSObject::DefineOwnPropertyIgnoreAttributes(&it, value, attr)); |
- if (!feedback_vector.is_null()) { |
+ if (!feedback_vector.is_null() && |
+ it.state() != LookupIterator::State::INTERCEPTOR) { |
DCHECK_EQ(*global, *it.GetHolder<Object>()); |
// Preinitialize the feedback slot if the global object does not have |
// named interceptor or the interceptor is not masking. |