| 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 3390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3401 Resolver(); | 3401 Resolver(); |
| 3402 static void CheckCast(Value* obj); | 3402 static void CheckCast(Value* obj); |
| 3403 }; | 3403 }; |
| 3404 | 3404 |
| 3405 /** | 3405 /** |
| 3406 * Register a resolution/rejection handler with a promise. | 3406 * Register a resolution/rejection handler with a promise. |
| 3407 * The handler is given the respective resolution/rejection value as | 3407 * The handler is given the respective resolution/rejection value as |
| 3408 * an argument. If the promise is already resolved/rejected, the handler is | 3408 * an argument. If the promise is already resolved/rejected, the handler is |
| 3409 * invoked at the end of turn. | 3409 * invoked at the end of turn. |
| 3410 */ | 3410 */ |
| 3411 V8_DEPRECATED("Use maybe version of Then", | |
| 3412 Local<Promise> Chain(Local<Function> handler)); | |
| 3413 V8_DEPRECATED("Use Then", | |
| 3414 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Chain( | |
| 3415 Local<Context> context, Local<Function> handler)); | |
| 3416 | |
| 3417 V8_DEPRECATED("Use maybe version", | 3411 V8_DEPRECATED("Use maybe version", |
| 3418 Local<Promise> Catch(Local<Function> handler)); | 3412 Local<Promise> Catch(Local<Function> handler)); |
| 3419 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context, | 3413 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context, |
| 3420 Local<Function> handler); | 3414 Local<Function> handler); |
| 3421 | 3415 |
| 3422 V8_DEPRECATED("Use maybe version", | 3416 V8_DEPRECATED("Use maybe version", |
| 3423 Local<Promise> Then(Local<Function> handler)); | 3417 Local<Promise> Then(Local<Function> handler)); |
| 3424 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context, | 3418 V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context, |
| 3425 Local<Function> handler); | 3419 Local<Function> handler); |
| 3426 | 3420 |
| (...skipping 5559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8986 */ | 8980 */ |
| 8987 | 8981 |
| 8988 | 8982 |
| 8989 } // namespace v8 | 8983 } // namespace v8 |
| 8990 | 8984 |
| 8991 | 8985 |
| 8992 #undef TYPE_CHECK | 8986 #undef TYPE_CHECK |
| 8993 | 8987 |
| 8994 | 8988 |
| 8995 #endif // INCLUDE_V8_H_ | 8989 #endif // INCLUDE_V8_H_ |
| OLD | NEW |