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

Unified Diff: src/objects.h

Issue 1181013011: Support CreateDataProperty on JSObject in the runtime (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« src/api.cc ('K') | « src/api.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« src/api.cc ('K') | « src/api.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698