Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: src/runtime.cc

Issue 420443006: Use return value of GetPropertyAttributes to make compiler happy. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index c195a90271a18b8a3d33f68d5ffbaa48469e6a2d..a3ebfd34bc9029ab2293868fcd8daf9829c8f151 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -5251,7 +5251,8 @@ RUNTIME_FUNCTION(Runtime_AddNamedProperty) {
uint32_t index = 0;
ASSERT(!key->ToArrayIndex(&index));
LookupIterator it(object, key, LookupIterator::CHECK_OWN_REAL);
- JSReceiver::GetPropertyAttributes(&it);
+ Maybe<PropertyAttributes> maybe = JSReceiver::GetPropertyAttributes(&it);
+ ASSERT(maybe.has_value);
RUNTIME_ASSERT(!it.IsFound());
#endif
@@ -5282,7 +5283,8 @@ RUNTIME_FUNCTION(Runtime_AddPropertyForTemplate) {
if (key->IsName()) {
LookupIterator it(object, Handle<Name>::cast(key),
LookupIterator::CHECK_OWN_REAL);
- JSReceiver::GetPropertyAttributes(&it);
+ Maybe<PropertyAttributes> maybe = JSReceiver::GetPropertyAttributes(&it);
+ ASSERT(maybe.has_value);
duplicate = it.IsFound();
} else {
uint32_t index = 0;
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698