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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 // will only be returned if the interceptor doesn't return a value. 2679 // will only be returned if the interceptor doesn't return a value.
2680 // 2680 //
2681 // Note also that this only works for named properties. 2681 // Note also that this only works for named properties.
2682 V8_DEPRECATE_SOON("Use maybe version", 2682 V8_DEPRECATE_SOON("Use maybe version",
2683 bool ForceSet(Handle<Value> key, Handle<Value> value, 2683 bool ForceSet(Handle<Value> key, Handle<Value> value,
2684 PropertyAttribute attribs = None)); 2684 PropertyAttribute attribs = None));
2685 // TODO(dcarney): mark V8_WARN_UNUSED_RESULT 2685 // TODO(dcarney): mark V8_WARN_UNUSED_RESULT
2686 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key, 2686 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
2687 Local<Value> value, PropertyAttribute attribs = None); 2687 Local<Value> value, PropertyAttribute attribs = None);
2688 2688
2689 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
2690 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
2691 PropertyAttribute attribute = None);
2692
2689 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Handle<Value> key)); 2693 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Handle<Value> key));
2690 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, 2694 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2691 Local<Value> key); 2695 Local<Value> key);
2692 2696
2693 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index)); 2697 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
2694 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, 2698 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2695 uint32_t index); 2699 uint32_t index);
2696 2700
2697 /** 2701 /**
2698 * Gets the property attributes of a property which can be None or 2702 * Gets the property attributes of a property which can be None or
(...skipping 5393 matching lines...) Expand 10 before | Expand all | Expand 10 after
8092 */ 8096 */
8093 8097
8094 8098
8095 } // namespace v8 8099 } // namespace v8
8096 8100
8097 8101
8098 #undef TYPE_CHECK 8102 #undef TYPE_CHECK
8099 8103
8100 8104
8101 #endif // V8_H_ 8105 #endif // V8_H_
OLDNEW
« 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