embedder_main bootstrap scripts are missing some globals #4778
|
When using the script gets access to This is the code responsible: https://github.com/nodejs/node/blob/2a4452a53af65a13db4efae474162a7dcfd38dd5/src/node_builtins.cc#L368-L373 This is a problem when copying code from node's bootstrappers, since the code relies on such globals. Other than So should I open a PR to give access to |
Replies: 0 comments 2 replies
|
Update: #46825 now we also lost access to |
|
I think the reason was that we do not want to be burdened of maintaining any compatibility of the internals for embedders. It might be okay to add an option to expose them, but not by default and this should be guarded with explicit warning that frequent breakages should be expected. |
I think the reason was that we do not want to be burdened of maintaining any compatibility of the internals for embedders. It might be okay to add an option to expose them, but not by default and this should be guarded with explicit warning that frequent breakages should be expected.