src: expose PlatformInit
When Node.js is run, it registers signal handlers specific to Node.js as well as does a handful of other platform-specific setup modifications. When embedders are running in emulated Node.js mode, as Electron does with ELECTRON_RUN_AS_NODE
it's likely that they'd also wish to handle these platform-specific things in indentical or nearly-so ways.
As such, it would be helpful to expose this method such that embedders can avoid needing to replicate all its logic themselves.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines