diff --git a/src/node.cc b/src/node.cc index 472ab81147eb81..459fd3d451b81b 100644 --- a/src/node.cc +++ b/src/node.cc @@ -4395,6 +4395,9 @@ void FreePlatform(MultiIsolatePlatform* platform) { delete platform; } +MultiIsolatePlatform* GetCurrentPlatform() { + return v8_platform.Platform(); +} Local NewContext(Isolate* isolate, Local object_template) { diff --git a/src/node.h b/src/node.h index e6f47aa30075c4..e8258841b898dd 100644 --- a/src/node.h +++ b/src/node.h @@ -254,6 +254,8 @@ NODE_EXTERN MultiIsolatePlatform* CreatePlatform( v8::TracingController* tracing_controller); NODE_EXTERN void FreePlatform(MultiIsolatePlatform* platform); +NODE_EXTERN MultiIsolatePlatform* GetCurrentPlatform(); + NODE_EXTERN void EmitBeforeExit(Environment* env); NODE_EXTERN int EmitExit(Environment* env); NODE_EXTERN void RunAtExit(Environment* env);