Index: src/runtime/runtime-scopes.cc |
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
index 2e349f00d3b64dbc4fd6d3e91943b49f253d2b73..6e0f6fe21370bb3e17a39d0a456246ab01d390ed 100644 |
--- a/src/runtime/runtime-scopes.cc |
+++ b/src/runtime/runtime-scopes.cc |
@@ -86,8 +86,7 @@ Object* DeclareGlobal( |
// Check whether we can reconfigure the existing property into a |
// function. |
- PropertyDetails old_details = it.property_details(); |
- if (old_details.IsReadOnly() || old_details.IsDontEnum() || |
+ if (old_attributes & READ_ONLY || old_attributes & DONT_ENUM || |
(it.state() == LookupIterator::ACCESSOR)) { |
// ECMA-262 section 15.1.11 GlobalDeclarationInstantiation 5.d: |
// If hasRestrictedGlobal is true, throw a SyntaxError exception. |