Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 79a8fbafbe8769104feef8626efb7ff82b8db7ff..7868b4d473b4ed9ea8220a09a549851cfca2ddd8 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1864,6 +1864,11 @@ class JSObject: public JSReceiver { |
PropertyAttributes attributes = NONE, |
ExecutableAccessorInfoHandling handling = DEFAULT_HANDLING); |
+ // Adds or reconfigures a property to attributes NONE. It will fail when it |
+ // cannot. |
+ MUST_USE_RESULT static Maybe<bool> CreateDataProperty(LookupIterator* it, |
+ Handle<Object> value); |
+ |
static void AddProperty(Handle<JSObject> object, Handle<Name> name, |
Handle<Object> value, PropertyAttributes attributes); |