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 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2627 }; | 2627 }; |
2628 | 2628 |
2629 /** | 2629 /** |
2630 * Register a resolution/rejection handler with a promise. | 2630 * Register a resolution/rejection handler with a promise. |
2631 * The handler is given the respective resolution/rejection value as | 2631 * The handler is given the respective resolution/rejection value as |
2632 * an argument. If the promise is already resolved/rejected, the handler is | 2632 * an argument. If the promise is already resolved/rejected, the handler is |
2633 * invoked at the end of turn. | 2633 * invoked at the end of turn. |
2634 */ | 2634 */ |
2635 Local<Promise> Chain(Handle<Function> handler); | 2635 Local<Promise> Chain(Handle<Function> handler); |
2636 Local<Promise> Catch(Handle<Function> handler); | 2636 Local<Promise> Catch(Handle<Function> handler); |
| 2637 Local<Promise> Then(Handle<Function> handler); |
2637 | 2638 |
2638 V8_INLINE static Promise* Cast(Value* obj); | 2639 V8_INLINE static Promise* Cast(Value* obj); |
2639 | 2640 |
2640 private: | 2641 private: |
2641 Promise(); | 2642 Promise(); |
2642 static void CheckCast(Value* obj); | 2643 static void CheckCast(Value* obj); |
2643 }; | 2644 }; |
2644 | 2645 |
2645 | 2646 |
2646 #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT | 2647 #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT |
(...skipping 3983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6630 */ | 6631 */ |
6631 | 6632 |
6632 | 6633 |
6633 } // namespace v8 | 6634 } // namespace v8 |
6634 | 6635 |
6635 | 6636 |
6636 #undef TYPE_CHECK | 6637 #undef TYPE_CHECK |
6637 | 6638 |
6638 | 6639 |
6639 #endif // V8_H_ | 6640 #endif // V8_H_ |
OLD | NEW |