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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1082 * Returns the number of modules requested by this module. | 1082 * Returns the number of modules requested by this module. |
1083 */ | 1083 */ |
1084 int GetModuleRequestsLength() const; | 1084 int GetModuleRequestsLength() const; |
1085 | 1085 |
1086 /** | 1086 /** |
1087 * Returns the ith module specifier in this module. | 1087 * Returns the ith module specifier in this module. |
1088 * i must be < GetModuleRequestsLength() and >= 0. | 1088 * i must be < GetModuleRequestsLength() and >= 0. |
1089 */ | 1089 */ |
1090 Local<String> GetModuleRequest(int i) const; | 1090 Local<String> GetModuleRequest(int i) const; |
1091 | 1091 |
| 1092 void SetEmbedderData(Local<Value> data); |
| 1093 Local<Value> GetEmbedderData() const; |
| 1094 |
1092 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context, | 1095 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context, |
1093 Local<String> specifier, | 1096 Local<String> specifier, |
1094 Local<Module> referrer, | 1097 Local<Module> referrer, |
1095 Local<Value> data); | 1098 Local<Value> data); |
1096 | 1099 |
1097 /** | 1100 /** |
1098 * ModuleDeclarationInstantiation | 1101 * ModuleDeclarationInstantiation |
1099 * | 1102 * |
1100 * Returns false if an exception occurred during instantiation. | 1103 * Returns false if an exception occurred during instantiation. |
1101 */ | 1104 */ |
(...skipping 8463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9565 */ | 9568 */ |
9566 | 9569 |
9567 | 9570 |
9568 } // namespace v8 | 9571 } // namespace v8 |
9569 | 9572 |
9570 | 9573 |
9571 #undef TYPE_CHECK | 9574 #undef TYPE_CHECK |
9572 | 9575 |
9573 | 9576 |
9574 #endif // INCLUDE_V8_H_ | 9577 #endif // INCLUDE_V8_H_ |
OLD | NEW |