/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCxxPlatform/react/logging/DefaultOnJsErrorHandler.h
22 строки
573 B
Andrew Datsenko
move rncxx logging (#50652)
11 апр 2025, 18:06
11 апр 2025, 18:06
798eb0a
Код
Авторство
О чём код?
/* * 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. */ #pragma once #include <glog/logging.h> #include <jserrorhandler/JsErrorHandler.h> namespace facebook::react { static inline JsErrorHandler::OnJsError getDefaultOnJsErrorFunc() { return [](jsi::Runtime& /*runtime*/, const JsErrorHandler::ProcessedError& error) { LOG(ERROR) << "[onJsError called]: " << error << std::endl; }; } } // namespace facebook::react