OLD | NEW |
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 2078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2089 ALL_CAN_WRITE = 1 << 1, | 2089 ALL_CAN_WRITE = 1 << 1, |
2090 PROHIBITS_OVERWRITING = 1 << 2 | 2090 PROHIBITS_OVERWRITING = 1 << 2 |
2091 }; | 2091 }; |
2092 | 2092 |
2093 | 2093 |
2094 /** | 2094 /** |
2095 * A JavaScript object (ECMA-262, 4.3.3) | 2095 * A JavaScript object (ECMA-262, 4.3.3) |
2096 */ | 2096 */ |
2097 class V8_EXPORT Object : public Value { | 2097 class V8_EXPORT Object : public Value { |
2098 public: | 2098 public: |
2099 bool Set(Handle<Value> key, | 2099 bool Set(Handle<Value> key, Handle<Value> value); |
2100 Handle<Value> value, | |
2101 PropertyAttribute attribs = None); | |
2102 | 2100 |
2103 bool Set(uint32_t index, Handle<Value> value); | 2101 bool Set(uint32_t index, Handle<Value> value); |
2104 | 2102 |
2105 // Sets an own property on this object bypassing interceptors and | 2103 // Sets an own property on this object bypassing interceptors and |
2106 // overriding accessors or read-only properties. | 2104 // overriding accessors or read-only properties. |
2107 // | 2105 // |
2108 // Note that if the object has an interceptor the property will be set | 2106 // Note that if the object has an interceptor the property will be set |
2109 // locally, but since the interceptor takes precedence the local property | 2107 // locally, but since the interceptor takes precedence the local property |
2110 // will only be returned if the interceptor doesn't return a value. | 2108 // will only be returned if the interceptor doesn't return a value. |
2111 // | 2109 // |
(...skipping 4612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6724 */ | 6722 */ |
6725 | 6723 |
6726 | 6724 |
6727 } // namespace v8 | 6725 } // namespace v8 |
6728 | 6726 |
6729 | 6727 |
6730 #undef TYPE_CHECK | 6728 #undef TYPE_CHECK |
6731 | 6729 |
6732 | 6730 |
6733 #endif // V8_H_ | 6731 #endif // V8_H_ |
OLD | NEW |