/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ext/node/polyfills/constants.ts
35 строк
774 B
Nathan Whitaker
perf: lazy-load more modules in the snapshot (#34061)
19 май 2026, 02:37
Не верифицирован
19 май 2026, 02:37
eb4061f
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. // Based on: https://github.com/nodejs/node/blob/0646eda/lib/constants.js (function () { const { core, primordials } = __bootstrap; const { ObjectAssign } = primordials; const fsConstants = core.loadExtScript( "ext:deno_node/_fs/_fs_constants.ts", ); const { constants: osConstants } = core.loadExtScript( "ext:deno_node/os.ts", ); const { crypto: cryptoConstants, zlib: zlibConstants, } = core.loadExtScript("ext:deno_node/internal_binding/constants.ts"); const defaultExport = ObjectAssign( {}, fsConstants, osConstants.dlopen, osConstants.errno, osConstants.signals, osConstants.priority, cryptoConstants, zlibConstants, ); return { default: defaultExport, ...defaultExport, }; })();