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 4525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4536 * isolate, receiver, return value, or whether running in `'use strict'` mode. | 4536 * isolate, receiver, return value, or whether running in `'use strict'` mode. |
4537 * See `PropertyCallbackInfo`. | 4537 * See `PropertyCallbackInfo`. |
4538 * | 4538 * |
4539 * See also | 4539 * See also |
4540 * `ObjectTemplate::SetNamedPropertyHandler.` | 4540 * `ObjectTemplate::SetNamedPropertyHandler.` |
4541 */ | 4541 */ |
4542 typedef void (*GenericNamedPropertySetterCallback)( | 4542 typedef void (*GenericNamedPropertySetterCallback)( |
4543 Local<Name> property, Local<Value> value, | 4543 Local<Name> property, Local<Value> value, |
4544 const PropertyCallbackInfo<Value>& info); | 4544 const PropertyCallbackInfo<Value>& info); |
4545 | 4545 |
4546 | |
4547 /** | 4546 /** |
4548 * Returns a non-empty handle if the interceptor intercepts the request. | 4547 * Intercepts all requests that query the attributes of the |
4549 * The result is an integer encoding property attributes (like v8::None, | 4548 * property, e.g., getOwnPropertyDescriptor(), propertyIsEnumerable(), and |
4550 * v8::DontEnum, etc.) | 4549 * defineProperty(). |
4550 * | |
4551 * Use `info.GetReturnValue().Set(value)` to set the property attributes. The | |
4552 * value is an interger encoding a `v8::PropertyAttribute`. | |
4553 * | |
4554 * \param property The name of the property for which the request was | |
4555 * intercepted. | |
4556 * \param info Information about the intercepted request, such as | |
4557 * isolate, receiver, return value, or whether running in `'use strict'` mode. | |
4558 * See `PropertyCallbackInfo`. | |
4559 * | |
4560 * \note hasOwnProperty() can trigger this interceptor, but for optimization | |
4561 * reasons it is not guaranteed to. | |
jochen (gone - plz use gerrit)
2016/08/29 12:52:35
wut? :-/
Franzi
2016/08/31 11:18:36
Is this version better or should we leave out the
jochen (gone - plz use gerrit)
2016/08/31 14:37:49
ah, so you mean that hasOwnProperty might or might
| |
4562 * | |
4563 * See also | |
4564 * `ObjectTemplate::SetNamedPropertyHandler.` | |
4551 */ | 4565 */ |
4552 typedef void (*GenericNamedPropertyQueryCallback)( | 4566 typedef void (*GenericNamedPropertyQueryCallback)( |
4553 Local<Name> property, const PropertyCallbackInfo<Integer>& info); | 4567 Local<Name> property, const PropertyCallbackInfo<Integer>& info); |
4554 | 4568 |
4555 | 4569 |
4556 /** | 4570 /** |
4557 * Returns a non-empty handle if the deleter intercepts the request. | 4571 * Returns a non-empty handle if the deleter intercepts the request. |
4558 * The return value is true if the property could be deleted and false | 4572 * The return value is true if the property could be deleted and false |
4559 * otherwise. | 4573 * otherwise. |
4560 */ | 4574 */ |
(...skipping 4678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
9239 */ | 9253 */ |
9240 | 9254 |
9241 | 9255 |
9242 } // namespace v8 | 9256 } // namespace v8 |
9243 | 9257 |
9244 | 9258 |
9245 #undef TYPE_CHECK | 9259 #undef TYPE_CHECK |
9246 | 9260 |
9247 | 9261 |
9248 #endif // INCLUDE_V8_H_ | 9262 #endif // INCLUDE_V8_H_ |
OLD | NEW |