MCPcopy Create free account
hub / github.com/Snapchat/Valdi / doCreateWrappedObject

Function doCreateWrappedObject

valdi/test/integration/JSIntegrationTests.cpp:1601–1616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

TEST_PFunction · 0.85

Calls 5

getMethod · 0.65
newWrappedObjectMethod · 0.45
checkExceptionMethod · 0.45
setObjectPropertyMethod · 0.45
getGlobalObjectMethod · 0.45

Tested by

no test coverage detected