Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 9b31aed77464179412cdc490d6a6f30ab8725edb..2d1f7f4fdccaff90b7fe1f978e5dfc231bc41be5 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1901,22 +1901,13 @@ Local<String> Module::GetModuleRequest(int i) const { |
return ToApiHandle<String>(i::handle(module_requests->get(i), isolate)); |
} |
-void Module::SetEmbedderData(Local<Value> data) { |
- Utils::OpenHandle(this)->set_embedder_data(*Utils::OpenHandle(*data)); |
-} |
- |
-Local<Value> Module::GetEmbedderData() const { |
- auto self = Utils::OpenHandle(this); |
- return ToApiHandle<Value>( |
- i::handle(self->embedder_data(), self->GetIsolate())); |
-} |
+int Module::GetIdentityHash() const { return Utils::OpenHandle(this)->hash(); } |
bool Module::Instantiate(Local<Context> context, |
- Module::ResolveCallback callback, |
- Local<Value> callback_data) { |
+ Module::ResolveCallback callback) { |
PREPARE_FOR_EXECUTION_BOOL(context, Module, Instantiate); |
- has_pending_exception = !i::Module::Instantiate( |
- Utils::OpenHandle(this), context, callback, callback_data); |
+ has_pending_exception = |
+ !i::Module::Instantiate(Utils::OpenHandle(this), context, callback); |
RETURN_ON_FAILED_EXECUTION_BOOL(); |
return true; |
} |