/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lib/internal/bootstrap/shadow_realm.js
21 строка
579 B
Chengzhong Wu
module: bootstrap module loaders in shadow realm
13 ноя 2023, 17:09
Не верифицирован
13 ноя 2023, 17:09
fc2862b
Код
Авторство
О чём код?
'use strict'; // This script sets up the context for shadow realms. const { prepareShadowRealmExecution, } = require('internal/process/pre_execution'); const { BuiltinModule, } = require('internal/bootstrap/realm'); BuiltinModule.setRealmAllowRequireByUsers([ /** * The built-in modules exposed in the ShadowRealm must each be providing * platform capabilities with no authority to cause side effects such as * I/O or mutation of values that are shared across different realms within * the same Node.js environment. */ ]); prepareShadowRealmExecution();