/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
private/react-native-fantom/src/Constants.js
37 строк
970 B
Rubén Norte
Improve API to take JS heap snapshots in Fantom (#53071)
06 авг 2025, 15:40
06 авг 2025, 15:40
789fc57
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ export type FantomRuntimeConstants = $ReadOnly<{ isOSS: boolean, isRunningFromCI: boolean, forceTestModeForBenchmarks: boolean, fantomConfigSummary: string, jsHeapSnapshotOutputPathTemplate: string, jsHeapSnapshotOutputPathTemplateToken: string, jsTraceOutputPath: ?string, }>; let constants: FantomRuntimeConstants = { isOSS: false, isRunningFromCI: false, forceTestModeForBenchmarks: false, fantomConfigSummary: '', jsHeapSnapshotOutputPathTemplate: '', jsHeapSnapshotOutputPathTemplateToken: '', jsTraceOutputPath: null, }; export function getConstants(): FantomRuntimeConstants { return constants; } export function setConstants(newConstants: FantomRuntimeConstants): void { constants = newConstants; }