Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index efe3528e56ae76f7848857478872ecfbfb447309..3bcc1e4b8a9c70054b7f26bcd0f5397630afe861 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -1079,11 +1079,29 @@ class V8_EXPORT UnboundScript { |
| class V8_EXPORT Module { |
| public: |
| /** |
| + * Returns the number of modules imported by this module. |
| + */ |
|
neis
2016/09/20 21:07:30
s/imported/requested/, or say "imported or re-expo
adamk
2016/09/20 21:13:58
Done.
|
| + int GetModuleRequestsLength() const; |
| + |
| + /** |
| + * Returns the ith module specifier in this module. |
| + * i must be < GetModuleRequestsLength() and >= 0. |
| + */ |
| + Local<String> GetModuleRequest(int i) const; |
| + |
| + typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context, |
| + Local<String> specifier, |
| + Local<Module> referrer, |
| + Local<Value> data); |
| + |
| + /** |
| * ModuleDeclarationInstantiation |
| * |
| * Returns false if an exception occurred during instantiation. |
| */ |
| - V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context); |
| + V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context, |
| + ResolveCallback callback, |
| + Local<Value> callback_data); |
| /** |
| * ModuleEvaluation |