RuntimeAdapter.cpp 828 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #include "RuntimeAdapter.h"
  8. namespace facebook {
  9. namespace hermes {
  10. namespace inspector {
  11. RuntimeAdapter::~RuntimeAdapter() = default;
  12. void RuntimeAdapter::tickleJs() {}
  13. SharedRuntimeAdapter::SharedRuntimeAdapter(
  14. std::shared_ptr<jsi::Runtime> runtime,
  15. debugger::Debugger &debugger)
  16. : runtime_(std::move(runtime)), debugger_(debugger) {}
  17. SharedRuntimeAdapter::~SharedRuntimeAdapter() = default;
  18. jsi::Runtime &SharedRuntimeAdapter::getRuntime() {
  19. return *runtime_;
  20. }
  21. debugger::Debugger &SharedRuntimeAdapter::getDebugger() {
  22. return debugger_;
  23. }
  24. } // namespace inspector
  25. } // namespace hermes
  26. } // namespace facebook