Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 52e25b21b917c63736e88a5eaf005b3f332016bb..5f43b3916e7173e673ef43a21429d75d96327f8f 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -8343,11 +8343,6 @@ Isolate* IsolateNewImpl(internal::Isolate* isolate, |
isolate->set_api_external_references(params.external_references); |
isolate->set_allow_atomics_wait(params.allow_atomics_wait); |
- if (params.host_import_module_dynamically_callback_ != nullptr) { |
- isolate->SetHostImportModuleDynamicallyCallback( |
- params.host_import_module_dynamically_callback_); |
- } |
- |
SetResourceConstraints(isolate, params.constraints); |
// TODO(jochen): Once we got rid of Isolate::Current(), we can remove this. |
Isolate::Scope isolate_scope(v8_isolate); |
@@ -8397,6 +8392,11 @@ void Isolate::SetAbortOnUncaughtExceptionCallback( |
isolate->SetAbortOnUncaughtExceptionCallback(callback); |
} |
+void Isolate::SetHostImportModuleDynamicallyCallback( |
+ HostImportModuleDynamicallyCallback callback) { |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
+ isolate->SetHostImportModuleDynamicallyCallback(callback); |
+} |
Isolate::DisallowJavascriptExecutionScope::DisallowJavascriptExecutionScope( |
Isolate* isolate, |