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

Unified Diff: include/v8.h

Issue 1073953004: Expose Object::DefineOwnProperty on the API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 8 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/api.cc » ('j') | src/api.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index cdb23b4655d6b2caadde4a9bd16f45d99902e4fd..6bda3f4a0300c42a8e53e039b5353d83d0e48872 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2686,6 +2686,10 @@ class V8_EXPORT Object : public Value {
Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
Local<Value> value, PropertyAttribute attribs = None);
+ V8_WARN_UNUSED_RESULT MaybeLocal<Value> DefineObjectProperty(
adamk 2015/04/15 16:31:53 Why not "DefineOwnProperty"? Also, it seems like i
dcarney 2015/04/15 19:02:56 i think a maybe<bool> is better than a meaningles
+ Local<Context> context, Local<Value> key, Local<Value> value,
adamk 2015/04/15 16:31:53 Why not add a version that takes a uint32_t key? T
+ PropertyAttribute attribute = None);
+
V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Handle<Value> key));
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
Local<Value> key);
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698