mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 15:30:56 +01:00
1944265678
Also creates `CreateMainEnvironment` to encapsulate the code creating the main environment from the provided Isolate data and arguments. PR-URL: https://github.com/nodejs/node/pull/26788 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com>
14 lines
374 B
JavaScript
14 lines
374 B
JavaScript
'use strict';
|
|
|
|
// This runs necessary preparations to prepare a complete Node.js context
|
|
// that depends on run time states.
|
|
// It is currently only intended for preparing contexts for embedders.
|
|
|
|
/* global markBootstrapComplete */
|
|
const {
|
|
prepareMainThreadExecution
|
|
} = require('internal/bootstrap/pre_execution');
|
|
|
|
prepareMainThreadExecution();
|
|
markBootstrapComplete();
|