| 1599 | callSemaphore->setValue(callContext.getParameterAsDouble(0)); |
| 1600 | return Valdi::JSValueRef(); |
| 1601 | }), |
| 1602 | jsEntry.exceptionTracker); |
| 1603 | jsEntry.checkException(); |
| 1604 | |
| 1605 | function = |
| 1606 | jsValueToFunction(jsEntry.context, jsFunction.get(), ReferenceInfoBuilder(), jsEntry.exceptionTracker); |
| 1607 | jsEntry.checkException(); |
| 1608 | } |
| 1609 | |
| 1610 | setJsQueuePaused(wrapper, allowCallSemaphore, false); |
| 1611 | |
| 1612 | // First try without throttling |
| 1613 | (*function)(ValueFunctionFlagsNone, {Value(1.0)}); |
| 1614 | (*function)(ValueFunctionFlagsNone, {Value(2.0)}); |
| 1615 | (*function)(ValueFunctionFlagsNone, {Value(3.0)}); |
| 1616 | |
| 1617 | // Wait until the last call submits 3.0 |
| 1618 | callSemaphore->waitForValue(3.0); |
| 1619 | // We should have been called 3 times |
no test coverage detected