| 919 | }; |
| 920 | |
| 921 | void setJsQueuePaused(JSContextWrapper& wrapper, const Shared<TestSemaphore<bool>>& semaphore, bool paused) { |
| 922 | semaphore->setValue(paused); |
| 923 | |
| 924 | if (paused) { |
| 925 | // Enqueue a block that will lock the thread |
| 926 | wrapper.getDispatchQueue()->async([=]() { semaphore->waitForValue(false); }); |
| 927 | } |
| 928 | } |
| 929 | |
| 930 | TEST_P(JSContextFixture, canCallFunctionThrottled) { |
| 931 | SKIP_IF_V8("Ticket: 2259"); |
no test coverage detected