Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index 27e212d468f054878c5e04fd7e3c2d493d2a23a4..786dcf062317a54dc142daf2e5a6a192c2fb1201 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -2592,6 +2592,13 @@ class V8_EXPORT Object : public Value { |
| V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, |
| Local<Value> value); |
| + V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context, |
|
adamk
2015/05/26 18:55:56
Please add a comment explaining what this does, ho
jochen (gone - plz use gerrit)
2015/05/27 07:28:29
done
|
| + Local<Name> key, |
| + Local<Value> value); |
| + V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context, |
| + uint32_t index, |
| + Local<Value> value); |
| + |
| // Sets an own property on this object bypassing interceptors and |
| // overriding accessors or read-only properties. |
| // |
| @@ -2600,12 +2607,13 @@ class V8_EXPORT Object : public Value { |
| // will only be returned if the interceptor doesn't return a value. |
| // |
| // Note also that this only works for named properties. |
| - V8_DEPRECATE_SOON("Use maybe version", |
| + V8_DEPRECATE_SOON("Use CreateDataProperty", |
| bool ForceSet(Handle<Value> key, Handle<Value> value, |
| PropertyAttribute attribs = None)); |
| - // TODO(dcarney): mark V8_WARN_UNUSED_RESULT |
| - Maybe<bool> ForceSet(Local<Context> context, Local<Value> key, |
| - Local<Value> value, PropertyAttribute attribs = None); |
| + V8_DEPRECATE_SOON("Use CreateDataProperty", |
| + Maybe<bool> ForceSet(Local<Context> context, |
| + Local<Value> key, Local<Value> value, |
| + PropertyAttribute attribs = None)); |
| V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Handle<Value> key)); |
| V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, |