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

Function registerAssets

valdi/test/integration/Runtime_tests.cpp:4961–4969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4959// Disabling this for now as we no longer respect it
4960// TEST_P(RuntimeFixture, makeOpaqueReferencesStayAliveAfterComponentIsDestroyed) {
4961// // auto tree =
4962// wrapper.createViewNodeTreeAndContext("test", "RetainNativeRefs", Value::undefined(), Value::undefined());
4963
4964// wrapper.waitUntilAllUpdatesCompleted();
4965
4966// SharedAtomic<Value> retainedJsValue;
4967
4968// auto callback = makeShared<ValueFunctionWithCallable>([=](auto flags, Valdi::Marshaller& parameters) {
4969// retainedJsValue.set(parameters.get(0).value());
4970// return false;
4971// });
4972

Callers 1

TEST_PFunction · 0.85

Calls 1

registerAssetFunction · 0.85

Tested by

no test coverage detected