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

Unified Diff: src/objects.cc

Issue 421913006: Version 3.28.43.1 (merged r22638) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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 | « no previous file | src/runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 4d08b7999ed27c317b41109f381eafb8d25575c3..01c0831b4ca5001950197e3931dc8a38a5d65889 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -4093,7 +4093,8 @@ void JSObject::AddProperty(Handle<JSObject> object, Handle<Name> name,
ASSERT(!object->IsJSProxy());
ASSERT(!name->AsArrayIndex(&index));
LookupIterator it(object, name, LookupIterator::CHECK_OWN_REAL);
- GetPropertyAttributes(&it);
+ Maybe<PropertyAttributes> maybe = GetPropertyAttributes(&it);
+ ASSERT(maybe.has_value);
ASSERT(!it.IsFound());
ASSERT(object->map()->is_extensible());
#endif
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698