Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 1ab93b53fe1808d829c205e5681eedab5eae982a..79ef0a03ea66d270d20ad0b2489ad42f0d2b9e57 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -1106,22 +1106,22 @@ |
*/ |
Local<String> GetModuleRequest(int i) const; |
- /** |
- * Returns the identity hash for this object. |
- */ |
- int GetIdentityHash() const; |
+ void SetEmbedderData(Local<Value> data); |
+ Local<Value> GetEmbedderData() const; |
typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context, |
Local<String> specifier, |
- Local<Module> referrer); |
+ Local<Module> referrer, |
+ Local<Value> data); |
/** |
* ModuleDeclarationInstantiation |
* |
* Returns false if an exception occurred during instantiation. |
*/ |
- V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context, |
- ResolveCallback callback); |
+ V8_WARN_UNUSED_RESULT bool Instantiate( |
+ Local<Context> context, ResolveCallback callback, |
+ Local<Value> callback_data = Local<Value>()); |
/** |
* ModuleEvaluation |