Agent.cpp 397 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibJS/Runtime/Agent.h>
  7. namespace JS {
  8. // 9.7.2 AgentCanSuspend ( ), https://tc39.es/ecma262/#sec-agentcansuspend
  9. bool agent_can_suspend()
  10. {
  11. // FIXME: 1. Let AR be the Agent Record of the surrounding agent.
  12. // FIXME: 2. Return AR.[[CanBlock]].
  13. return true;
  14. }
  15. }