Chromium Code Reviews| 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); |