diff --git a/src/node.cc b/src/node.cc index 7a121783df..4565b7dff3 100644 --- a/src/node.cc +++ b/src/node.cc @@ -4679,6 +4679,10 @@ int EmitExit(Environment* env) { } +IsolateData* CreateIsolateData(Isolate* isolate, uv_loop_t* loop) { + return new IsolateData(isolate, loop, nullptr); +} + IsolateData* CreateIsolateData( Isolate* isolate, uv_loop_t* loop, diff --git a/src/node.h b/src/node.h index 97d80cf18c..7cc46efb4a 100644 --- a/src/node.h +++ b/src/node.h @@ -223,10 +223,13 @@ class WorkerSupportingPlatform : public v8::Platform { // If `platform` is passed, it will be used to register new worker instances. // It can be `nullptr`, in which case creating new workers will not work. +NODE_EXTERN IsolateData* CreateIsolateData( + v8::Isolate* isolate, + struct uv_loop_s* loop); NODE_EXTERN IsolateData* CreateIsolateData( v8::Isolate* isolate, struct uv_loop_s* loop, - WorkerSupportingPlatform* platform = nullptr); + WorkerSupportingPlatform* platform); NODE_EXTERN void FreeIsolateData(IsolateData* isolate_data); NODE_EXTERN Environment* CreateEnvironment(IsolateData* isolate_data,