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 4197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4208 // --- Leave Script Callback --- | 4208 // --- Leave Script Callback --- |
4209 typedef void (*CallCompletedCallback)(); | 4209 typedef void (*CallCompletedCallback)(); |
4210 | 4210 |
4211 // --- Promise Reject Callback --- | 4211 // --- Promise Reject Callback --- |
4212 enum PromiseRejectEvent { | 4212 enum PromiseRejectEvent { |
4213 kPromiseRejectWithNoHandler = 0, | 4213 kPromiseRejectWithNoHandler = 0, |
4214 kPromiseHandlerAddedAfterReject = 1 | 4214 kPromiseHandlerAddedAfterReject = 1 |
4215 }; | 4215 }; |
4216 | 4216 |
4217 typedef void (*PromiseRejectCallback)(Handle<Promise> promise, | 4217 typedef void (*PromiseRejectCallback)(Handle<Promise> promise, |
4218 PromiseRejectEvent event, | |
aandrey
2014/10/07 10:32:07
I think we'd better extract these to smth like v8:
| |
4218 Handle<Value> value, | 4219 Handle<Value> value, |
4219 PromiseRejectEvent event); | 4220 Handle<StackTrace> stack_trace); |
4220 | 4221 |
4221 // --- Microtask Callback --- | 4222 // --- Microtask Callback --- |
4222 typedef void (*MicrotaskCallback)(void* data); | 4223 typedef void (*MicrotaskCallback)(void* data); |
4223 | 4224 |
4224 // --- Failed Access Check Callback --- | 4225 // --- Failed Access Check Callback --- |
4225 typedef void (*FailedAccessCheckCallback)(Local<Object> target, | 4226 typedef void (*FailedAccessCheckCallback)(Local<Object> target, |
4226 AccessType type, | 4227 AccessType type, |
4227 Local<Value> data); | 4228 Local<Value> data); |
4228 | 4229 |
4229 // --- AllowCodeGenerationFromStrings callbacks --- | 4230 // --- AllowCodeGenerationFromStrings callbacks --- |
(...skipping 2812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7042 */ | 7043 */ |
7043 | 7044 |
7044 | 7045 |
7045 } // namespace v8 | 7046 } // namespace v8 |
7046 | 7047 |
7047 | 7048 |
7048 #undef TYPE_CHECK | 7049 #undef TYPE_CHECK |
7049 | 7050 |
7050 | 7051 |
7051 #endif // V8_H_ | 7052 #endif // V8_H_ |
OLD | NEW |