/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/jsinspector-modern/ForwardingConsoleMethods.def
38 строк
1 KB
Moti Zilberman
Lift console method bodies out of installConsoleHandler
30 апр 2024, 15:38
30 апр 2024, 15:38
845a879
Код
Авторство
О чём код?
/* * 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. */ /** * `console` methods that have no behaviour other than emitting a * Runtime.consoleAPICalled message. */ // console.clear FORWARDING_CONSOLE_METHOD(clear, ConsoleAPIType::kClear) // console.debug FORWARDING_CONSOLE_METHOD(debug, ConsoleAPIType::kDebug) // console.dir FORWARDING_CONSOLE_METHOD(dir, ConsoleAPIType::kDir) // console.dirxml FORWARDING_CONSOLE_METHOD(dirxml, ConsoleAPIType::kDirXML) // console.error FORWARDING_CONSOLE_METHOD(error, ConsoleAPIType::kError) // console.group FORWARDING_CONSOLE_METHOD(group, ConsoleAPIType::kStartGroup) // console.groupCollapsed FORWARDING_CONSOLE_METHOD(groupCollapsed, ConsoleAPIType::kStartGroupCollapsed) // console.groupEnd FORWARDING_CONSOLE_METHOD(groupEnd, ConsoleAPIType::kEndGroup) // console.info FORWARDING_CONSOLE_METHOD(info, ConsoleAPIType::kInfo) // console.log FORWARDING_CONSOLE_METHOD(log, ConsoleAPIType::kLog) // console.table FORWARDING_CONSOLE_METHOD(table, ConsoleAPIType::kTable) // console.trace FORWARDING_CONSOLE_METHOD(trace, ConsoleAPIType::kTrace) // console.warn FORWARDING_CONSOLE_METHOD(warn, ConsoleAPIType::kWarning)